Prevent rigid body from falling asleep

Waking the rigid body on the OnComponentSleep is a workaround with downsides (actual velocity is lost).

However I think I found a fix and the reason why the sleep threshold is ignored: it’s using properties from the physics material. Set the “sleep linear velocity threshold” and the “sleep angular velocity” both to 0, and the “sleep counter threshold” to max value. I didn’t get any sleep events anymore.

14 Likes