cocos2d-x  3.2rc0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PhysicsJointRotaryLimit Class Reference

Likes a limit joint, but works with rotary. More...

#include <CCPhysicsJoint.h>

Inheritance diagram for PhysicsJointRotaryLimit:
PhysicsJoint

Public Member Functions

float getMin () const
void setMin (float min)
float getMax () const
void setMax (float max)
var setMax ( var max)
local setMax ( local max)
- Public Member Functions inherited from PhysicsJoint
PhysicsBodygetBodyA () const
PhysicsBodygetBodyB () const
PhysicsWorldgetWorld () const
int getTag () const
void setTag (int tag)
bool isEnabled () const
void setEnable (bool enable)
 Enable/Disable the joint. More...
 
bool isCollisionEnabled () const
local isCollisionEnabled ()
void setCollisionEnable (bool enable)
 Enable/disable the collision between two bodies. More...
 
void removeFormWorld ()
 Remove the joint from the world. More...
 
void setMaxForce (float force)
 Set the max force between two bodies. More...
 
float getMaxForce () const
 Get the max force setting. More...
 

Static Public Member Functions

static PhysicsJointRotaryLimitconstruct (PhysicsBody *a, PhysicsBody *b, float min, float max)
local construct ( local a, local b, local min, local max)
static PhysicsJointRotaryLimitconstruct (PhysicsBody *a, PhysicsBody *b)
var construct ( var a, var b)
local construct ( local a, local b)
- Static Public Member Functions inherited from PhysicsJoint
static void destroy (PhysicsJoint *joint)
 Distory the joint. More...
 
local destroy ( local joint)
 Distory the joint. More...
 

Protected Member Functions

bool init (PhysicsBody *a, PhysicsBody *b, float min, float max)
local init ( local a, local b, local min, local max)
 PhysicsJointRotaryLimit ()
virtual ~PhysicsJointRotaryLimit ()
- Protected Member Functions inherited from PhysicsJoint
 PhysicsJoint ()
virtual ~PhysicsJoint ()=0
bool init (PhysicsBody *a, PhysicsBody *b)
PhysicsBodyInfogetBodyInfo (PhysicsBody *body) const
 PhysicsShape is PhysicsBody's friend class, but all the subclasses isn't. More...
 
var getBodyInfo ( var body)
 PhysicsShape is PhysicsBody's friend class, but all the subclasses isn't. More...
 
NodegetBodyNode (PhysicsBody *body) const

Additional Inherited Members

- Protected Attributes inherited from PhysicsJoint
PhysicsBody_bodyA
PhysicsBody_bodyB
PhysicsWorld_world
PhysicsJointInfo_info
bool _enable
bool _collisionEnable
var _collisionEnable
local _collisionEnable
bool _destoryMark
int _tag

Detailed Description

Likes a limit joint, but works with rotary.

Constructor & Destructor Documentation

PhysicsJointRotaryLimit ( )
inlineprotected
var PhysicsJointRotaryLimit ( )
inlineprotected
local PhysicsJointRotaryLimit ( )
inlineprotected
virtual ~PhysicsJointRotaryLimit ( )
inlineprotectedvirtual
var ~PhysicsJointRotaryLimit ( )
inlineprotectedvirtual
local ~PhysicsJointRotaryLimit ( )
inlineprotectedvirtual

Member Function Documentation

static PhysicsJointRotaryLimit*
construct
( PhysicsBody a,
PhysicsBody b,
float  min,
float  max 
)
static
var construct ( var  a,
var  b,
var  min,
var  max 
)
static
local construct ( local  a,
local  b,
local  min,
local  max 
)
static
static PhysicsJointRotaryLimit*
construct
( PhysicsBody a,
PhysicsBody b 
)
static
var construct ( var  a,
var  b 
)
static
local construct ( local  a,
local  b 
)
static
float getMax ( ) const
var getMax ( )
local getMax ( )
float getMin ( ) const
var getMin ( )
local getMin ( )
bool init ( PhysicsBody a,
PhysicsBody b,
float  min,
float  max 
)
protected
var init ( var  a,
var  b,
var  min,
var  max 
)
protected
local init ( local  a,
local  b,
local  min,
local  max 
)
protected
void setMax ( float  max)
var setMax ( var  max)
local setMax ( local  max)
void setMin ( float  min)
var setMin ( var  min)
local setMin ( local  min)

The documentation for this class was generated from the following file: