| RigidBodyCanSleep Property |
Gets or sets a value indicating whether this body can sleep.
Namespace: DigitalRune.PhysicsAssembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax public bool CanSleep { get; set; }
Public Property CanSleep As Boolean
Get
Set
public:
property bool CanSleep {
bool get ();
void set (bool value);
}
member CanSleep : bool with 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