Click or drag to resize
DigitalRuneRigidBodyCanSleep Property
Gets or sets a value indicating whether this body can sleep.

Namespace: DigitalRune.Physics
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
public bool CanSleep { get; set; }

Property Value

Type: Boolean
if this rigid body can sleep; otherwise, . The default is .
Remarks
Normally, all rigid bodies can sleep (see also SleepingSettings). For critical bodies sleeping can be disabled, e.g. for rigid bodies of the player character. If CanSleep is , this body will always be awake and actively simulated.
See Also