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

Attach body a to a line, and attach body b to a dot. More...

#include <CCPhysicsJoint.h>

Inheritance diagram for PhysicsJointGroove:
PhysicsJoint

Public Member Functions

Vec2 getGrooveA () const
void setGrooveA (const Vec2 &grooveA)
Vec2 getGrooveB () const
void setGrooveB (const Vec2 &grooveB)
Vec2 getAnchr2 () const
void setAnchr2 (const Vec2 &anchr2)
- 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 PhysicsJointGrooveconstruct (PhysicsBody *a, PhysicsBody *b, const Vec2 &grooveA, const Vec2 &grooveB, const Vec2 &anchr2)
local construct ( local a, local b, local grooveA, local grooveB, local anchr2)
- 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, const Vec2 &grooveA, const Vec2 &grooveB, const Vec2 &anchr)
var init ( var a, var b, var grooveA, var grooveB, var anchr)
local init ( local a, local b, local grooveA, local grooveB, local anchr)
 PhysicsJointGroove ()
virtual ~PhysicsJointGroove ()
- 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

Attach body a to a line, and attach body b to a dot.

Constructor & Destructor Documentation

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

Member Function Documentation

static PhysicsJointGroove*
construct
( PhysicsBody a,
PhysicsBody b,
const Vec2 grooveA,
const Vec2 grooveB,
const Vec2 anchr2 
)
static
var construct ( var  a,
var  b,
var  grooveA,
var  grooveB,
var  anchr2 
)
static
local construct ( local  a,
local  b,
local  grooveA,
local  grooveB,
local  anchr2 
)
static
Vec2 getAnchr2 ( ) const
var getAnchr2 ( )
local getAnchr2 ( )
Vec2 getGrooveA ( ) const
var getGrooveA ( )
local getGrooveA ( )
Vec2 getGrooveB ( ) const
var getGrooveB ( )
local getGrooveB ( )
bool init ( PhysicsBody a,
PhysicsBody b,
const Vec2 grooveA,
const Vec2 grooveB,
const Vec2 anchr 
)
protected
var init ( var  a,
var  b,
var  grooveA,
var  grooveB,
var  anchr 
)
protected
local init ( local  a,
local  b,
local  grooveA,
local  grooveB,
local  anchr 
)
protected
void setAnchr2 ( const Vec2 anchr2)
var setAnchr2 ( var  anchr2)
local setAnchr2 ( local  anchr2)
void setGrooveA ( const Vec2 grooveA)
var setGrooveA ( var  grooveA)
local setGrooveA ( local  grooveA)
void setGrooveB ( const Vec2 grooveB)
var setGrooveB ( var  grooveB)
local setGrooveB ( local  grooveB)

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