|
virtual void | addJoint (PhysicsJoint *joint) |
| Adds a joint to this physics world. More...
|
|
local | addJoint ( local joint) |
| Adds a joint to this physics world. More...
|
|
virtual void | removeJoint (PhysicsJoint *joint, bool destroy=true) |
| Remove a joint from this physics world. More...
|
|
local | removeJoint ( local joint, local true) |
| Remove a joint from this physics world. More...
|
|
virtual void | removeAllJoints (bool destroy=true) |
| Remove all joints from this physics world. More...
|
|
local | removeAllJoints ( local true) |
| Remove all joints from this physics world. More...
|
|
virtual void | removeBody (PhysicsBody *body) |
| Remove a body from this physics world. More...
|
|
var | removeBody ( var body) |
| Remove a body from this physics world. More...
|
|
local | removeBody ( local body) |
| Remove a body from this physics world. More...
|
|
virtual void | removeBody (int tag) |
| Remove body by tag. More...
|
|
virtual void | removeAllBodies () |
| Remove all bodies from physics world. More...
|
|
var | removeAllBodies () |
| Remove all bodies from physics world. More...
|
|
local | removeAllBodies () |
| Remove all bodies from physics world. More...
|
|
void | rayCast (PhysicsRayCastCallbackFunc func, const Vec2 &start, const Vec2 &end, void *data) |
| Searches for physics shapes that intersects the ray. More...
|
|
var | rayCast ( var func, var start, var end, var data) |
| Searches for physics shapes that intersects the ray. More...
|
|
local | rayCast ( local func, local start, local end, local data) |
| Searches for physics shapes that intersects the ray. More...
|
|
void | queryRect (PhysicsQueryRectCallbackFunc func, const Rect &rect, void *data) |
| Searches for physics shapes that contains in the rect. More...
|
|
void | queryPoint (PhysicsQueryPointCallbackFunc func, const Vec2 &point, void *data) |
| Searches for physics shapes that contains the point. More...
|
|
Vector< PhysicsShape * > | getShapes (const Vec2 &point) const |
| Get physics shapes that contains the point. More...
|
|
local | getShapes ( local point) |
| Get physics shapes that contains the point. More...
|
|
PhysicsShape * | getShape (const Vec2 &point) const |
| Get the nearest physics shape that contains the point. More...
|
|
local | getShape ( local point) |
| Get the nearest physics shape that contains the point. More...
|
|
const Vector< PhysicsBody * > & | getAllBodies () const |
| Get all the bodies that in this physics world. More...
|
|
local | getAllBodies () |
| Get all the bodies that in this physics world. More...
|
|
PhysicsBody * | getBody (int tag) const |
| Get a body by tag. More...
|
|
local | getBody ( local tag) |
| Get a body by tag. More...
|
|
Scene & | getScene () const |
| Get a scene contain this physics world. More...
|
|
var | getScene () |
| Get a scene contain this physics world. More...
|
|
local | getScene () |
| Get a scene contain this physics world. More...
|
|
Vec2 | getGravity () const |
| Get the gravity value of this physics world. More...
|
|
void | setGravity (const Vec2 &gravity) |
| set the gravity value of this physics world. More...
|
|
var | setGravity ( var gravity) |
| set the gravity value of this physics world. More...
|
|
local | setGravity ( local gravity) |
| set the gravity value of this physics world. More...
|
|
void | setSpeed (float speed) |
| Set the speed of this physics world. More...
|
|
float | getSpeed () |
| Get the speed of this physics world. More...
|
|
var | getSpeed () |
| Get the speed of this physics world. More...
|
|
local | getSpeed () |
| Get the speed of this physics world. More...
|
|
void | setUpdateRate (int rate) |
| Set the update rate of this physics world. More...
|
|
local | setUpdateRate ( local rate) |
| Set the update rate of this physics world. More...
|
|
int | getUpdateRate () |
| Get the update rate of this physics world. More...
|
|
local | getUpdateRate () |
| Get the update rate of this physics world. More...
|
|
void | setSubsteps (int steps) |
| set the number of substeps in an update of the physics world. More...
|
|
local | setSubsteps ( local steps) |
| set the number of substeps in an update of the physics world. More...
|
|
int | getSubsteps () const |
| Get the number of substeps of this physics world. More...
|
|
local | getSubsteps () |
| Get the number of substeps of this physics world. More...
|
|
void | setFixedUpdateRate (int updatesPerSecond) |
| set the number of update of the physics world in a second. More...
|
|
var | setFixedUpdateRate ( var updatesPerSecond) |
| set the number of update of the physics world in a second. More...
|
|
local | setFixedUpdateRate ( local updatesPerSecond) |
| set the number of update of the physics world in a second. More...
|
|
int | getFixedUpdateRate () const |
| get the number of substeps
|
|
var | getFixedUpdateRate () |
| get the number of substeps
|
|
local | getFixedUpdateRate () |
| get the number of substeps
|
|
void | setDebugDrawMask (int mask) |
| Set the debug draw mask of this physics world. More...
|
|
var | setDebugDrawMask ( var mask) |
| Set the debug draw mask of this physics world. More...
|
|
local | setDebugDrawMask ( local mask) |
| Set the debug draw mask of this physics world. More...
|
|
int | getDebugDrawMask () |
| Get the debug draw mask. More...
|
|
void | setAutoStep (bool autoStep) |
| To control the step of physics. More...
|
|
bool | isAutoStep () |
| Get the auto step of this physics world. More...
|
|
void | step (float delta) |
| The step for physics world. More...
|
|
local | step ( local delta) |
| The step for physics world. More...
|
|