#include <CCPhysicsJoint.h>
Public Member Functions | |
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 void | destroy (PhysicsJoint *joint) |
Distory the joint. More... | |
local | destroy ( local joint) |
Distory the joint. More... | |
Protected Member Functions | |
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 |
Protected Attributes | |
PhysicsBody * | _bodyA |
PhysicsBody * | _bodyB |
PhysicsWorld * | _world |
PhysicsJointInfo * | _info |
bool | _enable |
bool | _collisionEnable |
var | _collisionEnable |
local | _collisionEnable |
bool | _destoryMark |
int | _tag |
Friends | |
class | PhysicsBody |
class | PhysicsWorld |
class | PhysicsDebugDraw |
|
protected |
|
protected |
|
protected |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
static |
Distory the joint.
|
static |
Distory the joint.
|
static |
Distory the joint.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
PhysicsShape is PhysicsBody's friend class, but all the subclasses isn't.
so this method is use for subclasses to catch the bodyInfo from PhysicsBody.
|
protected |
PhysicsShape is PhysicsBody's friend class, but all the subclasses isn't.
so this method is use for subclasses to catch the bodyInfo from PhysicsBody.
|
protected |
PhysicsShape is PhysicsBody's friend class, but all the subclasses isn't.
so this method is use for subclasses to catch the bodyInfo from PhysicsBody.
|
protected |
|
protected |
|
protected |
float getMaxForce | ( | ) | const |
Get the max force setting.
var getMaxForce | ( | ) |
Get the max force setting.
local getMaxForce | ( | ) |
Get the max force setting.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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 |