Event tick with Wake rigid body? UE5

Hey there @Miss_Alexis! Welcome to the community! So generally if at all possible try to avoid putting anything in event tick that can be triggered by an event such as coming in range of something, casting, or even rendering it! The reason sleep is so aggressive is due to the fact it’s expensive to run collisions on everything constantly with full fidelity. The good news is there’s a way to disable sleeping altogether for specific objects if you’d like.

You can make a physics material and apply it to your object as an override:
image

And you can change all of these to 0 on the physical material itself:

Now your object will never sleep. I do however recommend changing this material in and out with one that allows it to sleep when it’s done being used in a larger game requiring more performance, but in smaller games you could leave them awake if you’d like. In my own experience I tend to send wake up events and change them to this material while I’m within 1000u but in your case if you’re doing Portal like levels where the player may not be in range to be near them it might just be better to leave them awake and just unload the whole room when you’re done.

Hope this helps!

1 Like