![]() |
Xors3d Engine
|
Functions | |
| void | xEntityBodyLocalPosition (Entity *entity, float x, float y, float z) |
| Sets a local position of the entity's body. | |
| void | xEntityBodyLocalRotation (Entity *entity, float pitch, float yaw, float roll) |
| Sets a local rotation of the entity's body. | |
| void | xEntityBodyLocalScale (Entity *entity, float x, float y, float z) |
| Sets a local scale of the entity's body. | |
| void xEntityBodyLocalPosition | ( | Entity * | entity, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
Sets a local position of the entity's body.
This function is useful in case the automatic entity-body centering doesn't fit your needs.
| entity | Entity handle |
| x | X coordinate of the new position |
| y | Y coordinate of the new position |
| z | Z coordinate of the new position |
| void xEntityBodyLocalRotation | ( | Entity * | entity, |
| float | pitch, | ||
| float | yaw, | ||
| float | roll | ||
| ) |
Sets a local rotation of the entity's body.
This function is useful in case the automatic entity-body centering doesn't fit your needs.
| entity | Entity handle |
| pitch | New pitch angle |
| yaw | New yaw angle |
| roll | New roll angle |
| void xEntityBodyLocalScale | ( | Entity * | entity, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
Sets a local scale of the entity's body.
This function is useful in case the automatic entity-body scaling doesn't fit your needs.
| entity | Entity handle |
| x | Scale along X axis |
| y | Scale along Y axis |
| z | Scale along Z axis |