An PhysicsJoint object connects two physics bodies together.
More...
#include <CCPhysicsJoint.h>
An PhysicsJoint object connects two physics bodies together.
virtual bool createConstraints |
( |
| ) |
|
|
inlineprotectedvirtual |
Create constraints for this type joint.
Reimplemented in PhysicsJointMotor, PhysicsJointGear, PhysicsJointRatchet, PhysicsJointRotaryLimit, PhysicsJointRotarySpring, PhysicsJointGroove, PhysicsJointSpring, PhysicsJointDistance, PhysicsJointPin, PhysicsJointLimit, and PhysicsJointFixed.
var createConstraints |
( |
| ) |
|
|
inlineprotectedvirtual |
Create constraints for this type joint.
Reimplemented in PhysicsJointMotor, PhysicsJointGear, PhysicsJointRatchet, PhysicsJointRotaryLimit, PhysicsJointRotarySpring, PhysicsJointGroove, PhysicsJointSpring, PhysicsJointDistance, PhysicsJointPin, PhysicsJointLimit, and PhysicsJointFixed.
local createConstraints |
( |
| ) |
|
|
inlineprotectedvirtual |
Create constraints for this type joint.
Reimplemented in PhysicsJointMotor, PhysicsJointGear, PhysicsJointRatchet, PhysicsJointRotaryLimit, PhysicsJointRotarySpring, PhysicsJointGroove, PhysicsJointSpring, PhysicsJointDistance, PhysicsJointPin, PhysicsJointLimit, and PhysicsJointFixed.
Get physics body a connected to this joint.
Get physics body a connected to this joint.
Get physics body a connected to this joint.
Get physics body b connected to this joint.
Get physics body b connected to this joint.
Get physics body b connected to this joint.
float getMaxForce |
( |
| ) |
const |
|
inline |
Get the max force setting.
Get the max force setting.
Get the max force setting.
Get this joint's tag.
- Returns
- An interger number.
Get this joint's tag.
- Returns
- An interger number.
Get this joint's tag.
- Returns
- An interger number.
var init |
( |
var |
a, |
|
|
var |
b |
|
) |
| |
|
protected |
local init |
( |
local |
a, |
|
|
local |
b |
|
) |
| |
|
protected |
bool isCollisionEnabled |
( |
| ) |
const |
|
inline |
Determines if the collsion is enable.
var isCollisionEnabled |
( |
| ) |
|
|
inline |
Determines if the collsion is enable.
local isCollisionEnabled |
( |
| ) |
|
|
inline |
Determines if the collsion is enable.
Determines if the joint is enable.
Determines if the joint is enable.
Determines if the joint is enable.
Remove the joint from the world.
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.
Set this joint's tag.
- Parameters
-
Set this joint's tag.
- Parameters
-
local setTag |
( |
local |
tag | ) |
|
|
inline |
Set this joint's tag.
- Parameters
-
std::vector<cpConstraint*>
_cpConstraints |
|
protected |
The documentation for this class was generated from the following file: