Click or drag to resize

RigidBody2DCanSleep Property

If true, the body can enter sleep mode when there is no movement. See Sleeping.

Note: A RigidBody2D will never enter sleep mode automatically if its Mode is . It can still be put to sleep manually by setting its Sleeping property to true.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public bool CanSleep { get; set; }

Property Value

Type: Boolean
See Also