Hello. I have a situation where I need to slowmo everything in the world but the player. I have tried many things but the best looking solution was to set all actors custom time dilation and to leave the player’s alone.
The problem I’m encountering is that physics don’t respect the custom time dilation. I have researched quite a bit, but couldn’t find anything of use. I was looking around to see how physics are updated in the engine that it slows down with global time dilation, but I also couldn’t find anything.
I would like to toss ideas around about how I can achieve this in C++. Maybe some sort of override or something. I don’t have much physics in my game (only one parent class) so maybe I can do something in that class?
I honestly have no idea where to start so any help or pointers would be of great use to me. Also, I know we are on v5.5, but I’m using v4.27 for plugin and other reasons. Thanks in advance.
That worked! Forgot I had to change the tick and multiply by the custom time dilation for everything to look smooth and feel right. Now if you don’t mind, how would I go about freezing the game? what I did last time was set all actor’s time dilation to 0, but for obvious reasons I can’t do that for global. I also tried to allow the player to tick when paused, but the player never respected that. If it helps, I’m using the UniversalCamera plugin for my player. Thanks again for your reply!
For pausing time (except for the player) I set the custom time dilation to 0 for actors with a certain interface. I then have extra control over what happens within than actor. So, for example, actors with physics have their velocity saved and then stop simulating physics. Works pretty well and gives a very cool effect!