Function 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.

bool canSleep() nothrow @property @nogc;

void canSleep (
  bool v
) nothrow @property @nogc;