cocos2d-x
3.3
|
Attach body a to a line, and attach body b to a dot. More...
#include <CCPhysicsJoint.h>
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) |
![]() | |
PhysicsBody * | getBodyA () const |
PhysicsBody * | getBodyB () const |
PhysicsWorld * | getWorld () const |
int | getTag () const |
void | setTag (int tag) |
bool | isEnabled () const |
void | setEnable (bool enable) |
Enable/Disable the joint. More... | |
bool | isCollisionEnabled () const |
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 PhysicsJointGroove * | construct (PhysicsBody *a, PhysicsBody *b, const Vec2 &grooveA, const Vec2 &grooveB, const Vec2 &anchr2) |
![]() | |
static void | destroy (PhysicsJoint *joint) |
Distory the joint. More... | |
Protected Member Functions | |
bool | init (PhysicsBody *a, PhysicsBody *b, const Vec2 &grooveA, const Vec2 &grooveB, const Vec2 &anchr) |
PhysicsJointGroove () | |
virtual | ~PhysicsJointGroove () |
![]() | |
PhysicsJoint () | |
virtual | ~PhysicsJoint ()=0 |
bool | init (PhysicsBody *a, PhysicsBody *b) |
PhysicsBodyInfo * | getBodyInfo (PhysicsBody *body) const |
PhysicsShape is PhysicsBody's friend class, but all the subclasses isn't. More... | |
Node * | getBodyNode (PhysicsBody *body) const |
Additional Inherited Members | |
![]() | |
PhysicsBody * | _bodyA |
PhysicsBody * | _bodyB |
PhysicsWorld * | _world |
PhysicsJointInfo * | _info |
bool | _enable |
bool | _collisionEnable |
bool | _destoryMark |
int | _tag |
Attach body a to a line, and attach body b to a dot.
|
inlineprotected |
|
inlineprotectedvirtual |
|
static |
Vec2 getAnchr2 | ( | ) | const |
Vec2 getGrooveA | ( | ) | const |
Vec2 getGrooveB | ( | ) | const |
|
protected |
void setAnchr2 | ( | const Vec2 & | anchr2 | ) |
void setGrooveA | ( | const Vec2 & | grooveA | ) |
void setGrooveB | ( | const Vec2 & | grooveB | ) |