![]() |
Xors3d Engine
|
Functions | |
BBDECL void BBCALL | xEntityDisableSimulation (Entity *entity, int state) |
Disable simulation of a particular entity. | |
BBDECL int BBCALL | xEntityHasBody (Entity *entity) |
Returns true if entity has a physical body. | |
BBDECL int BBCALL | xEntityIsKinematic (Entity *entity) |
Returns true if entity is kinematic and false otherwise. | |
BBDECL void BBCALL | xEntityMakeKinematic (Entity *entity, int state) |
Make entity kinematic. | |
BBDECL void BBCALL | xPhysicsDebugRender (int state) |
Sets a physics debug render mode. | |
BBDECL void BBCALL | xWorldSetFrequency (float frequency, xWorld *world=NULL) |
Sets the world's physics simulation frequency. |
BBDECL void BBCALL xWorldSetFrequency | ( | float | frequency, |
xWorld * | world = NULL |
||
) |
Sets the world's physics simulation frequency.
frequency | Physics simulation frequency (60 fps by default) |
world | World handle |
BBDECL void BBCALL xEntityMakeKinematic | ( | Entity * | entity, |
int | state | ||
) |
Make entity kinematic.
entity | Entity handle |
state | True to make a dynamic entity kinematic, false to make a kinematic entity dynamic. |
BBDECL int BBCALL xEntityIsKinematic | ( | Entity * | entity | ) |
Returns true if entity is kinematic and false otherwise.
entity | Entity handle |
BBDECL void BBCALL xPhysicsDebugRender | ( | int | state | ) |
Sets a physics debug render mode.
Available modes a listed in Physics debug drawer modes. Use a binary OR operator to combine several modes.
state | Debug render state |
BBDECL void BBCALL xEntityDisableSimulation | ( | Entity * | entity, |
int | state | ||
) |
Disable simulation of a particular entity.
If simulation is disabled an entity stops responding on collisions, contacts, applying force and so on.
entity | Entity handle |
state | True to disable simulation, false to enable. |
BBDECL int BBCALL xEntityHasBody | ( | Entity * | entity | ) |
Returns true if entity has a physical body.
entity | Entity handle |