Click or drag to resize
DigitalRuneRigidBodySleep Method
Deactivates this rigid body.

Namespace: DigitalRune.Physics
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
public void Sleep()
Remarks
The simulation will automatically put rigid bodies to sleep if they do not move for some time. This method can be called manually if rigid bodies are already initialized in a stable resting configuration. For example, if a stack of bodies is initialized in a game, Sleep can be called for all bodies in the stack after the first Update(TimeSpan). The bodies will wake up when other objects interact with the stacked bodies. (Note: Update(TimeSpan) needs to be called at least once to detect all collision and initialize all constraints. After the Update(TimeSpan) the bodies can be put to sleep.)
See Also