Properly rotate Character+Camera+Controller

Hi everyone,

I’m trying to rotate my Player character in 3D space using Input keys (for Roll and Pitch). Camera Yaw and Pitch is controlled as known by the 3rdPerson Template using the mouse.
What I’m trying to achieve is something similar to the movement of an astronaut in zero gravity.

The problem is, I can’t get the Control Rotation to work - the yaw/pitch for looking up/down/left/right obviously has to follow the character rotation but it doesn’t.

Currently, I’m adding a Local Rotation to the Character and Camera. The Control seems to be unaffected by the camera rotation - the mouse keeps rotating the view around WorldY and WorldZ instead of CharacterY and Z.

It feels like I haven’t fully grasped the connection between Camera and Controller yet, maybe I’m doing something significantly wrong here?

Thank you, any help is highly appreciated!

1 Like

Camera has an option for Use Controller Rotation.
maybe you need to switch that on or off to make it independent from te body.

Disabling that means I would need to add rotations to the camera according to the mouse input as well as the character… I will give that a try. Thanks!

I am confused, when you say “movement of an astronaut in zero gravity” do you mean the character themselves? Or the view? The way I see it, you can rotate your “character” in a weightless environment with a stationary camera and only move the camera when the player actually translates their position but remain in place with rotation. Or you want the camera to be on a spring arm and rotate the entire view in line with the character?

I mean rotating the character, e.g. using buttons Q and E to roll around the X/Forward-vector and buttons R and F to pitch around Y/Right-vector. The Camera should rotate/move along and the mouse input as well. I already found the solution; see my answer below,

So I probably had the wrong idea of how to do this. I thought it would be best to use what’s already there: “Add Controller Input”, but I couldn’t figure out how to rotate the reference axis of the controller view along with the character. So I just added a relative rotation to the camera and it’s all fine. Thanks for the input!