#include <CCPhysicsJoint.h>
Public Member Functions | |
| PhysicsBody * | getBodyA () const |
| var | getBodyA () |
| local | getBodyA () |
| PhysicsBody * | getBodyB () const |
| var | getBodyB () |
| local | getBodyB () |
| PhysicsWorld * | getWorld () const |
| var | getWorld () |
| local | getWorld () |
| int | getTag () const |
| var | getTag () |
| local | getTag () |
| void | setTag (int tag) |
| local | setTag ( local tag) |
| bool | isEnabled () const |
| local | isEnabled () |
| void | setEnable (bool enable) |
| Enable/Disable the joint. More... | |
| var | setEnable ( var enable) |
| Enable/Disable the joint. More... | |
| local | setEnable ( local enable) |
| Enable/Disable the joint. More... | |
| bool | isCollisionEnabled () const |
| void | setCollisionEnable (bool enable) |
| Enable/disable the collision between two bodies. More... | |
| var | setCollisionEnable ( var enable) |
| Enable/disable the collision between two bodies. More... | |
| local | setCollisionEnable ( local enable) |
| Enable/disable the collision between two bodies. More... | |
| void | removeFormWorld () |
| Remove the joint from the world. More... | |
| local | removeFormWorld () |
| Remove the joint from the world. More... | |
| void | setMaxForce (float force) |
| Set the max force between two bodies. More... | |
| var | setMaxForce ( var force) |
| Set the max force between two bodies. More... | |
| local | setMaxForce ( local force) |
| Set the max force between two bodies. More... | |
| float | getMaxForce () const |
| Get the max force setting. More... | |
Protected Member Functions | |
| PhysicsJoint () | |
| PhysicsJoint () | |
| virtual | ~PhysicsJoint ()=0 |
| local | ~PhysicsJoint () |
| bool | init (PhysicsBody *a, PhysicsBody *b) |
| local | init ( local a, local b) |
| bool | initJoint () |
| local | initJoint () |
| virtual bool | createConstraints () |
| local | createConstraints () |
Protected Attributes | |
| std::vector< cpConstraint * > | _cpConstraints |
| var | _cpConstraints |
| local | _cpConstraints |
| PhysicsBody * | _bodyA |
| var | _bodyA |
| local | _bodyA |
| PhysicsBody * | _bodyB |
| var | _bodyB |
| local | _bodyB |
| PhysicsWorld * | _world |
| var | _world |
| local | _world |
| bool | _enable |
| var | _enable |
| local | _enable |
| bool | _collisionEnable |
| var | _collisionEnable |
| local | _collisionEnable |
| bool | _destoryMark |
| var | _destoryMark |
| local | _destoryMark |
| int | _tag |
| var | _tag |
| local | _tag |
| float | _maxForce |
| var | _maxForce |
| local | _maxForce |
| bool | _initDirty |
| var | _initDirty |
| local | _initDirty |
Friends | |
| class | PhysicsBody |
| class | PhysicsWorld |
| class | PhysicsDebugDraw |
|
protected |
|
protected |
|
protected |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the max force setting.
|
inline |
Get the max force setting.
|
inline |
Get the max force setting.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void removeFormWorld | ( | ) |
Remove the joint from the world.
| var removeFormWorld | ( | ) |
Remove the joint from the world.
| local removeFormWorld | ( | ) |
Remove the joint from the world.
| void setCollisionEnable | ( | bool | enable | ) |
Enable/disable the collision between two bodies.
| var setCollisionEnable | ( | var | enable | ) |
Enable/disable the collision between two bodies.
| local setCollisionEnable | ( | local | enable | ) |
Enable/disable the collision between two bodies.
| void setEnable | ( | bool | enable | ) |
Enable/Disable the joint.
| var setEnable | ( | var | enable | ) |
Enable/Disable the joint.
| local setEnable | ( | local | enable | ) |
Enable/Disable the joint.
| void setMaxForce | ( | float | force | ) |
Set the max force between two bodies.
| var setMaxForce | ( | var | force | ) |
Set the max force between two bodies.
| local setMaxForce | ( | local | force | ) |
Set the max force between two bodies.
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |