Download

Set sleep parameters for Actor

Hey everybody,

In a game I’m working on, we have a player that can float through space.
A sphere collider is the base object of this actor, and the camera is a child of the collider.
But when the sphere collider is sent to sleep, because the player doesn’t move or rotate, the cameras transform isn’t updated either! You can still rotate because the forward vector changes, but it doesn’t update in the world.
I’ve gone through all settings related to physics, I’ve read somewhere that turning on CCD helps, but it doesn’t work when the player is completely static.
We’d like to keep the collider as the base object, is there any way we can turn of the sleeping behaviour of certain objects, either through C++ or blueprints?

Thanks in advance.