Attach body a to a line, and attach body b to a dot. More...
#include <CCPhysicsJoint.h>
Public Member Functions | |
Vec2 | getGrooveA () const |
var | getGrooveA () |
local | getGrooveA () |
void | setGrooveA (const Vec2 &grooveA) |
local | setGrooveA ( local grooveA) |
Vec2 | getGrooveB () const |
var | getGrooveB () |
local | getGrooveB () |
void | setGrooveB (const Vec2 &grooveB) |
var | setGrooveB ( var grooveB) |
local | setGrooveB ( local grooveB) |
Vec2 | getAnchr2 () const |
var | getAnchr2 () |
local | getAnchr2 () |
void | setAnchr2 (const Vec2 &anchr2) |
var | setAnchr2 ( var anchr2) |
local | setAnchr2 ( local anchr2) |
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... | |
float | getMaxForce () const |
Get the max force setting. More... | |
local | getMaxForce () |
Get the max force setting. More... | |
Static Public Member Functions | |
static PhysicsJointGroove * | construct (PhysicsBody *a, PhysicsBody *b, const Vec2 &grooveA, const Vec2 &grooveB, const Vec2 &anchr2) |
var | construct ( var a, var b, var grooveA, var grooveB, var anchr2) |
local | construct ( local a, local b, local grooveA, local grooveB, local anchr2) |
Static Public Member Functions inherited from PhysicsJoint | |
static void | destroy (PhysicsJoint *joint) |
Distory the joint. More... | |
var | destroy ( var joint) |
Distory the joint. More... | |
local | destroy ( local joint) |
Distory the joint. More... | |
Protected Member Functions | |
bool | init (PhysicsBody *a, PhysicsBody *b, const Vec2 &grooveA, const Vec2 &grooveB, const Vec2 &anchr) |
var | init ( var a, var b, var grooveA, var grooveB, var anchr) |
local | init ( local a, local b, local grooveA, local grooveB, local anchr) |
PhysicsJointGroove () | |
PhysicsJointGroove () | |
PhysicsJointGroove () | |
virtual | ~PhysicsJointGroove () |
local | ~PhysicsJointGroove () |
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) |
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 | |
Protected Attributes inherited from PhysicsJoint | |
PhysicsBody * | _bodyA |
PhysicsBody * | _bodyB |
var | _bodyB |
local | _bodyB |
PhysicsWorld * | _world |
var | _world |
local | _world |
PhysicsJointInfo * | _info |
var | _info |
local | _info |
bool | _enable |
var | _enable |
local | _enable |
bool | _collisionEnable |
var | _collisionEnable |
local | _collisionEnable |
bool | _destoryMark |
var | _destoryMark |
local | _destoryMark |
int | _tag |
var | _tag |
local | _tag |
Attach body a to a line, and attach body b to a dot.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
static |
|
static |
|
static |
Vec2 getAnchr2 | ( | ) | const |
var getAnchr2 | ( | ) |
local getAnchr2 | ( | ) |
Vec2 getGrooveA | ( | ) | const |
var getGrooveA | ( | ) |
local getGrooveA | ( | ) |
Vec2 getGrooveB | ( | ) | const |
var getGrooveB | ( | ) |
local getGrooveB | ( | ) |
|
protected |
|
protected |
|
protected |
void setAnchr2 | ( | const Vec2 & | anchr2 | ) |
var setAnchr2 | ( | var | anchr2 | ) |
local setAnchr2 | ( | local | anchr2 | ) |
void setGrooveA | ( | const Vec2 & | grooveA | ) |
var setGrooveA | ( | var | grooveA | ) |
local setGrooveA | ( | local | grooveA | ) |
void setGrooveB | ( | const Vec2 & | grooveB | ) |
var setGrooveB | ( | var | grooveB | ) |
local setGrooveB | ( | local | grooveB | ) |