cocos2d-x  3.0alpha1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PhysicsJoint Class Referenceabstract

#include <CCPhysicsJoint.h>

Inheritance diagram for PhysicsJoint:
PhysicsJointDistance PhysicsJointFixed PhysicsJointLimit PhysicsJointPin

Public Member Functions

PhysicsBodygetBodyA () const
local getBodyA ()
PhysicsBodygetBodyB () const
local getBodyB ()
PhysicsWorldgetWorld () const
local getWorld ()
int getTag () const
void setTag (int tag)
local setTag ( local tag)
bool isEnabled () const
void setEnable (bool enable)
local setEnable ( local enable)
bool isCollisionEnabled () const
void setCollisionEnable (bool enable)
var setCollisionEnable ( var enable)
local setCollisionEnable ( local enable)
void removeFormWorld ()

Static Public Member Functions

static void destroy (PhysicsJoint *joint)
local destroy ( local joint)

Protected Member Functions

 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...
 
local getBodyInfo ( local body)
 PhysicsShape is PhysicsBody's friend class, but all the subclasses isn't. More...
 
NodegetBodyNode (PhysicsBody *body) const

Protected Attributes

PhysicsBody_bodyA
PhysicsBody_bodyB
var _bodyB
local _bodyB
PhysicsWorld_world
var _world
local _world
PhysicsJointInfo_info
local _info
bool _enable
var _enable
local _enable
bool _collisionEnable
local _collisionEnable
bool _destoryMark
var _destoryMark
local _destoryMark
int _tag

Friends

class PhysicsBody
class PhysicsWorld
class PhysicsDebugDraw

Constructor & Destructor Documentation

PhysicsJoint ( )
protected
var PhysicsJoint ( )
protected
local PhysicsJoint ( )
protected
virtual ~PhysicsJoint ( )
protectedpure virtual
var ~PhysicsJoint ( )
protectedpure virtual
local ~PhysicsJoint ( )
protectedpure virtual

Member Function Documentation

static void destroy ( PhysicsJoint joint)
static
var destroy ( var  joint)
static
local destroy ( local  joint)
static
PhysicsBody* getBodyA ( ) const
inline
var getBodyA ( )
inline
local getBodyA ( )
inline
PhysicsBody* getBodyB ( ) const
inline
var getBodyB ( )
inline
local getBodyB ( )
inline
PhysicsBodyInfo* getBodyInfo ( PhysicsBody body) const
protected

PhysicsShape is PhysicsBody's friend class, but all the subclasses isn't.

so this method is use for subclasses to catch the bodyInfo from PhysicsBody.

var getBodyInfo ( var  body)
protected

PhysicsShape is PhysicsBody's friend class, but all the subclasses isn't.

so this method is use for subclasses to catch the bodyInfo from PhysicsBody.

local getBodyInfo ( local  body)
protected

PhysicsShape is PhysicsBody's friend class, but all the subclasses isn't.

so this method is use for subclasses to catch the bodyInfo from PhysicsBody.

Node* getBodyNode ( PhysicsBody body) const
protected
var getBodyNode ( var  body)
protected
local getBodyNode ( local  body)
protected
int getTag ( ) const
inline
var getTag ( )
inline
local getTag ( )
inline
PhysicsWorld* getWorld ( ) const
inline
var getWorld ( )
inline
local getWorld ( )
inline
bool init ( PhysicsBody a,
PhysicsBody b 
)
protected
var init ( var  a,
var  b 
)
protected
local init ( local  a,
local  b 
)
protected
bool isCollisionEnabled ( ) const
inline
var isCollisionEnabled ( )
inline
local isCollisionEnabled ( )
inline
bool isEnabled ( ) const
inline
var isEnabled ( )
inline
local isEnabled ( )
inline
void removeFormWorld ( )
var removeFormWorld ( )
local removeFormWorld ( )
void setCollisionEnable ( bool  enable)
var setCollisionEnable ( var  enable)
local setCollisionEnable ( local  enable)
void setEnable ( bool  enable)
var setEnable ( var  enable)
local setEnable ( local  enable)
void setTag ( int  tag)
inline
var setTag ( var  tag)
inline
local setTag ( local  tag)
inline

Friends And Related Function Documentation

friend class PhysicsBody
friend
var PhysicsBody
friend
local PhysicsBody
friend
friend class PhysicsDebugDraw
friend
var PhysicsDebugDraw
friend
local PhysicsDebugDraw
friend
friend class PhysicsWorld
friend
var PhysicsWorld
friend
local PhysicsWorld
friend

Member Data Documentation

PhysicsBody* _bodyA
protected
var _bodyA
protected
local _bodyA
protected
PhysicsBody* _bodyB
protected
var _bodyB
protected
local _bodyB
protected
bool _collisionEnable
protected
var _collisionEnable
protected
local _collisionEnable
protected
bool _destoryMark
protected
var _destoryMark
protected
local _destoryMark
protected
bool _enable
protected
var _enable
protected
local _enable
protected
PhysicsJointInfo* _info
protected
var _info
protected
local _info
protected
int _tag
protected
var _tag
protected
local _tag
protected
PhysicsWorld* _world
protected
var _world
protected
local _world
protected

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