# Prevent rigid body from falling asleep

**URL:** <https://forums.unrealengine.com/t/prevent-rigid-body-from-falling-asleep/518808>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [April 7, 2022, 4:27pm UTC](https://forums.unrealengine.com/t/prevent-rigid-body-from-falling-asleep/518808 "2022-04-07T16:27:48Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![123pirke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@123pirke](https://forums.unrealengine.com/u/123pirke)\
**Post date:** [July 1, 2022, 2:02am UTC](https://forums.unrealengine.com/t/prevent-rigid-body-from-falling-asleep/518808/9 "2022-07-01T02:02:26Z")

</div>

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.

---

_[View the full topic](https://forums.unrealengine.com/t/prevent-rigid-body-from-falling-asleep/518808)._
