![]() |
Xors3d Engine
|
Functions | |
| float | xEntityGetGravityX (Entity *entity) |
| Returns the X-component of the gravity vector for the given entity. | |
| float | xEntityGetGravityY (Entity *entity) |
| Returns the Y-component of the gravity vector for the given entity. | |
| float | xEntityGetGravityZ (Entity *entity) |
| Returns the Z-component of the gravity vector for the given entity. | |
| void | xEntitySetGravity (Entity *entity, float x, float y, float z) |
| Sets the vector of the gravity for the given entity. | |
| float | xWorldGetGravityX (xWorld *world=NULL) |
| Returns the X-component of the gravity vector in the given world. | |
| float | xWorldGetGravityY (xWorld *world=NULL) |
| Returns the Y-component of the gravity vector in the given world. | |
| float | xWorldGetGravityZ (xWorld *world=NULL) |
| Returns the Z-component of the gravity vector in the given world. | |
| void | xWorldSetGravity (float x, float y, float z, xWorld *world=NULL) |
| Sets the vector of the gravity in the given world. | |
| void xWorldSetGravity | ( | float | x, |
| float | y, | ||
| float | z, | ||
| xWorld * | world = NULL |
||
| ) |
Sets the vector of the gravity in the given world.
Default values are (0.0; -9.81; 0.0) . If the world is not specified, the gravity of the active world will be changed.
| x | X-component of the gravity vector |
| y | Y-component of the gravity vector |
| z | Z-component of the gravity vector |
| world | World handle |
| float xWorldGetGravityX | ( | xWorld * | world = NULL | ) |
Returns the X-component of the gravity vector in the given world.
If the world is not specified, the gravity of the active world will be returned.
| world | World handle |
| float xWorldGetGravityY | ( | xWorld * | world = NULL | ) |
Returns the Y-component of the gravity vector in the given world.
If the world is not specified, the gravity of the active world will be returned.
| world | World handle |
| float xWorldGetGravityZ | ( | xWorld * | world = NULL | ) |
Returns the Z-component of the gravity vector in the given world.
If the world is not specified, the gravity of the active world will be returned.
| world | World handle |
| void xEntitySetGravity | ( | Entity * | entity, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
Sets the vector of the gravity for the given entity.
Default values for newly created bodies are (0.0; -9.81; 0.0) .
| entity | Entity handle |
| x | X-component of the gravity vector |
| y | Y-component of the gravity vector |
| z | Z-component of the gravity vector |
| float xEntityGetGravityX | ( | Entity * | entity | ) |
Returns the X-component of the gravity vector for the given entity.
| entity | Entity handle |
| float xEntityGetGravityY | ( | Entity * | entity | ) |
Returns the Y-component of the gravity vector for the given entity.
| entity | Entity handle |
| float xEntityGetGravityZ | ( | Entity * | entity | ) |
Returns the Z-component of the gravity vector for the given entity.
| entity | Entity handle |