RigidBody2D.canSleep

If true the body will not calculate forces and will act as a static body if there is no movement. The body will wake up when other forces are applied via collisions or by using applyImpulse or addForce. Default value: true.

  1. bool canSleep [@property getter]
    struct RigidBody2D
    @nogc nothrow @property
    bool
    canSleep
    ()
  2. bool canSleep [@property setter]

Meta