I have a class extending ACharacter
. My goal is to be able to transform the entire RootComponent
of this character so that he could for example be upside down, or sideways, including the Camera, which means that if the RootComponent is turned upside down, you should see the scene flipped.
Now, in a way this works. If I use FRotator
and set roll to 180, then apply SetRelativeRotation
on the RootComponent
, then the camera is technically on the bottom of the capsule, while it was on the top before, so the transform has had an effect, however the actual up vector of the camera is not pointing for example to the negative Z.
Does the CharacterController
maybe override or update camera rotations itself by any chance?
If so, does anyone know a solution to this? Please let me know if a code sample or picture would be more helpful.
Thanks!