![]() |
Xors3d Engine
|
Functions | |
| void | xEntityDisableSleeping (Entity *entity, int state=1) |
| Disables or enables sleeping of an entity. | |
| float | xEntityGetAngularSleepingThreshold (Entity *entity) |
| Returns an angular velocity threshold of an entity. | |
| float | xEntityGetLinearSleepingThreshold (Entity *entity) |
| Returns a linear velocity threshold of an entity. | |
| int | xEntityIsSleeping (Entity *entity) |
| Returns true if entity is sleeping. | |
| void | xEntitySetSleepingThresholds (Entity *entity, float linearThreshold, float angularThreshold) |
| Sets the threshold of the linear and angular velocities below which an entity falls asleep. | |
| void | xEntitySleep (Entity *entity) |
| Force an entity to sleep. | |
| void | xEntityWakeUp (Entity *entity) |
| Force an entity to wake up. | |
| int xEntityIsSleeping | ( | Entity * | entity | ) |
Returns true if entity is sleeping.
| entity | Entity handle |
| void xEntityDisableSleeping | ( | Entity * | entity, |
| int | state = 1 |
||
| ) |
Disables or enables sleeping of an entity.
If sleeping is disable an entity's body is never go to sleep.
| entity | Entity handle |
| state | 1 (true) to disable sleeping. 0 (false) to enable sleeping. Default value is 1 (true) |
| void xEntityWakeUp | ( | Entity * | entity | ) |
Force an entity to wake up.
| entity | Entity handle |
| void xEntitySleep | ( | Entity * | entity | ) |
Force an entity to sleep.
| entity | Entity handle |
| void xEntitySetSleepingThresholds | ( | Entity * | entity, |
| float | linearThreshold, | ||
| float | angularThreshold | ||
| ) |
Sets the threshold of the linear and angular velocities below which an entity falls asleep.
Initially linear threshold is 0.8, angular threshold is 1.0.
| entity | Entity handle |
| linearThreshold | Linear velocity threshold |
| angularThreshold | Angular velocity threshold |
| float xEntityGetLinearSleepingThreshold | ( | Entity * | entity | ) |
Returns a linear velocity threshold of an entity.
| entity | Entity handle |
| float xEntityGetAngularSleepingThreshold | ( | Entity * | entity | ) |
Returns an angular velocity threshold of an entity.
| entity | Entity handle |