How can I get the third person character to walk backwards with the players back towards the camera while still using the ‘Orient Rotation to Movement’ option?
With ‘Orient Rotation to Movement’ selected the camera rotates freely around the player until movement is started then it rotates the player in the direction of movement. I want the forward velocity (W) to rotate the player to face the direction the camera is facing and the backwards (S) and Side movements (A)(D) to be in relation to the camera. A good example of what I’m wanting to achive is the camera/player movment in Dead Space.
This is what currently happens when the (S) key is pressed:
I would like the player to simple walk backwards when the (S) key is pressed instead of turning around and only turn around if the camera is looking behind the player and the (W) key is pressed. If that makes sense.
Off of your move forward input, you should do a branch (after the movement input is added) and if the axis value is less than or equal to (-0.5 or similar value) set ‘Orient Rotation to Movement’ to ‘False’, and if the value is greater than that, set it to ‘True’. There are probably some better ways to get this setup, but that will at least get you headed in the right direction.
I hope you find a solution to this, I was trying to achieve a similar effect for a client but he provided animations of the player walking (left, right, back, forward) with ‘Orient Rotation to Movement’ to True. Not sure if you have those animations available to you, but it saves a lot of time coding certain movements. Below is a video from my project with animations rather than coding, if that’s the look you’re going for.
I have a question about some blueprint regarding this.
The ‘Check Forward/Backwards movement’ event works but the ‘Check Left/Right Movement’ does not. The logic makes sense, to me atleast. I’m just stuck on why its not working and was hoping someone with fresh eyes could look at it.