Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Obsolete
The sleepVelocity is no longer supported. Use sleepThreshold. Note that sleepThreshold is energy but not velocity.

Rigidbody.sleepVelocity

Switch to Manual
public var sleepVelocity: float;

Description

The linear velocity below which objects start going to sleep. (Default 0.14) range { 0, infinity }.

See the Physics Overview in the manual for more information about Rigidbody sleeping.