#include <CCPhysicsJoint.h>
Public Member Functions | |
Vec2 | getAnchr1 () const |
void | setAnchr1 (const Vec2 &anchr1) |
Vec2 | getAnchr2 () const |
void | setAnchr2 (const Vec2 &anchr2) |
float | getMin () const |
void | setMin (float min) |
float | getMax () const |
void | setMax (float max) |
![]() | |
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 |
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 PhysicsJointLimit * | construct (PhysicsBody *a, PhysicsBody *b, const Vec2 &anchr1, const Vec2 &anchr2) |
static PhysicsJointLimit * | construct (PhysicsBody *a, PhysicsBody *b, const Vec2 &anchr1, const Vec2 &anchr2, float min, float max) |
![]() | |
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 &anchr1, const Vec2 &anchr2, float min, float max) |
PhysicsJointLimit () | |
virtual | ~PhysicsJointLimit () |
![]() | |
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... | |
var | getBodyInfo ( var body) |
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 |
var | _collisionEnable |
local | _collisionEnable |
bool | _destoryMark |
int | _tag |
|
inlineprotected |
|
inlineprotectedvirtual |
|
static |
|
static |
Vec2 getAnchr1 | ( | ) | const |
Vec2 getAnchr2 | ( | ) | const |
float getMax | ( | ) | const |
float getMin | ( | ) | const |
|
protected |
void setAnchr1 | ( | const Vec2 & | anchr1 | ) |
void setAnchr2 | ( | const Vec2 & | anchr2 | ) |
void setMax | ( | float | max | ) |
void setMin | ( | float | min | ) |