#include <CCPhysicsJoint.h>
Public Member Functions | |
| Vec2 | getAnchr1 () const |
| var | getAnchr1 () |
| local | getAnchr1 () |
| void | setAnchr1 (const Vec2 &anchr1) |
| Vec2 | getAnchr2 () const |
| var | getAnchr2 () |
| local | getAnchr2 () |
| void | setAnchr2 (const Vec2 &anchr2) |
| var | setAnchr2 ( var anchr2) |
| local | setAnchr2 ( local anchr2) |
| float | getMin () const |
| var | getMin () |
| local | getMin () |
| void | setMin (float min) |
| local | setMin ( local min) |
| float | getMax () const |
| var | getMax () |
| local | getMax () |
| void | setMax (float max) |
| local | setMax ( local max) |
| 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 PhysicsJointLimit * | construct (PhysicsBody *a, PhysicsBody *b, const Vec2 &anchr1, const Vec2 &anchr2) |
| local | construct ( local a, local b, local anchr1, local anchr2) |
| static PhysicsJointLimit * | construct (PhysicsBody *a, PhysicsBody *b, const Vec2 &anchr1, const Vec2 &anchr2, float min, float max) |
| local | construct ( local a, local b, local anchr1, local anchr2, local min, local max) |
Protected Member Functions | |
| PhysicsJointLimit () | |
| PhysicsJointLimit () | |
| virtual | ~PhysicsJointLimit () |
| var | ~PhysicsJointLimit () |
| local | ~PhysicsJointLimit () |
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 | |
| Vec2 | _anchr1 |
| Vec2 | _anchr2 |
| var | _anchr2 |
| local | _anchr2 |
| float | _min |
| var | _min |
| local | _min |
| float | _max |
| var | _max |
| local | _max |
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 |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
overridevirtual |
Reimplemented from PhysicsJoint.
|
overridevirtual |
Reimplemented from PhysicsJoint.
|
overridevirtual |
Reimplemented from PhysicsJoint.
| Vec2 getAnchr1 | ( | ) | const |
| var getAnchr1 | ( | ) |
| local getAnchr1 | ( | ) |
| Vec2 getAnchr2 | ( | ) | const |
| var getAnchr2 | ( | ) |
| local getAnchr2 | ( | ) |
| float getMax | ( | ) | const |
| var getMax | ( | ) |
| local getMax | ( | ) |
| float getMin | ( | ) | const |
| var getMin | ( | ) |
| local getMin | ( | ) |
| void setAnchr1 | ( | const Vec2 & | anchr1 | ) |
| var setAnchr1 | ( | var | anchr1 | ) |
| local setAnchr1 | ( | local | anchr1 | ) |
| void setAnchr2 | ( | const Vec2 & | anchr2 | ) |
| var setAnchr2 | ( | var | anchr2 | ) |
| local setAnchr2 | ( | local | anchr2 | ) |
| void setMax | ( | float | max | ) |
| var setMax | ( | var | max | ) |
| local setMax | ( | local | max | ) |
| void setMin | ( | float | min | ) |
| var setMin | ( | var | min | ) |
| local setMin | ( | local | min | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |