Keeps the angular velocity ratio of a pair of bodies constant. More...
#include <CCPhysicsJoint.h>
Public Member Functions | |
| float | getPhase () const |
| var | getPhase () |
| local | getPhase () |
| void | setPhase (float phase) |
| local | setPhase ( local phase) |
| float | getRatio () const |
| var | getRatio () |
| local | getRatio () |
| void | setRatio (float ratchet) |
| local | setRatio ( local ratchet) |
| virtual bool | createConstraints () override |
| local | createConstraints () |
Public Member Functions inherited from PhysicsJoint | |
| 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... | |
Static Public Member Functions | |
| static PhysicsJointGear * | construct (PhysicsBody *a, PhysicsBody *b, float phase, float ratio) |
| var | construct ( var a, var b, var phase, var ratio) |
| local | construct ( local a, local b, local phase, local ratio) |
Protected Member Functions | |
| PhysicsJointGear () | |
| PhysicsJointGear () | |
| virtual | ~PhysicsJointGear () |
| var | ~PhysicsJointGear () |
| local | ~PhysicsJointGear () |
Protected Member Functions inherited from PhysicsJoint | |
| PhysicsJoint () | |
| PhysicsJoint () | |
| virtual | ~PhysicsJoint ()=0 |
| local | ~PhysicsJoint () |
| bool | init (PhysicsBody *a, PhysicsBody *b) |
| local | init ( local a, local b) |
| bool | initJoint () |
| local | initJoint () |
Protected Attributes | |
| float | _phase |
| var | _phase |
| local | _phase |
| float | _ratio |
| var | _ratio |
| local | _ratio |
Protected Attributes inherited from PhysicsJoint | |
| 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 |
Keeps the angular velocity ratio of a pair of bodies constant.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
static |
|
static |
|
static |
|
overridevirtual |
Reimplemented from PhysicsJoint.
|
overridevirtual |
Reimplemented from PhysicsJoint.
|
overridevirtual |
Reimplemented from PhysicsJoint.
| float getPhase | ( | ) | const |
| var getPhase | ( | ) |
| local getPhase | ( | ) |
| float getRatio | ( | ) | const |
| var getRatio | ( | ) |
| local getRatio | ( | ) |
| void setPhase | ( | float | phase | ) |
| var setPhase | ( | var | phase | ) |
| local setPhase | ( | local | phase | ) |
| void setRatio | ( | float | ratchet | ) |
| var setRatio | ( | var | ratchet | ) |
| local setRatio | ( | local | ratchet | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |