Rigidbody2D.Sleep

Declaration

public void Sleep();

Description

Make the rigidbody "sleep".

Sleeping is an optimisation that is used to temporarily remove an object from physics simulation when it is at rest. This function makes the rigidbody sleep - it is sometimes desirable to enable this manually rather than allowing automatic sleeping with the sleepMode property.

Additional resources: IsSleeping, WakeUp, sleepMode.


Did you find this page useful? Please give it a rating: