I’m making a first person game and I want to make the player to be able to look behind him with the mouse by moving the mouse around, but in ue4 when I use my mouse the whole character rotates I only want to rotate the head and to leave the character’s rotation in the same place and when he use W A S D then to start moving till than not to move or rotate.
You probably mean the camera. Normally, in fps games, it’s the mouse that controls the rotation of the entire character (there are exceptions - Mechwarrior, for example).
How are you going to have it behave?
- we look back with the mouse when a key is held
- some other trigger?
- if you want the mouse to control the direction of the camera, how do we choose the direction to move
- perhaps we’re moving in the direction where we’re looking? and when we’re stationary, only the camera-head rotates?
Essentially, it’s a bit unclear atm. Tell us more!
I want it to be like in GTA 5 I can move my mouse around and the character not to move only his head to tilt and when he start moving to start moving in the direction of the camera I mean when he click W to do that
- I’ve rejiggled the default character hierarchy in the template and set the camera to
Absolute Rotation
:
- disabled
Controller Rotation
on the character - disabled
Pawn Control Rotation
on the camera
This way none of the elements inherit rotations. We can control the camera ourselves:
Ended up with this:
Looks like it could be a start. Will need more work, surely.