Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

Physics2D.timeToSleep

static var timeToSleep: float;
static float timeToSleep;
static timeToSleep as float

Description

The time in seconds that a rigid-body must be still before it will go to sleep.