I’m trying to move my character in a retro style (or vehicle/tank style, or Resident Evil style), with W moving forward, A and D rotating the character in place and S to walk backwards (reversing), while keeping the camera movement around the character free.
In the video below, the forward and rotating movements are ok, but whenever I press the backwards/reverse key (S), the character will only reverse towards one direction, independent of the character rotation (different from when pressing the W key).
Character has movement component, all is there in its details panel.
Load top down example, it has independent camera (that dos not rotate).
Orient your rabbit character to movement direction, make camera like it is in that example (and it should not rotate).
Then read mouse X axis for rotating around, and mouse Y for elevation.
Set up for camera:
add scene component name it “camera root”
to camera root attach camera arm component
finally put camera on other end of camera arm
Now use X axis to rotate root component
and use Y axis to rotate camera arm
To move rabbit use its forward vector and right vector.
The camera part I’ve managed to do as I wanted. My actual problem is that I whenever I press the S key (for the rabbit to go backwards), it always go to a specific direction (or axis), and not the direction based to the actor rotation.
It should look like the old Resident Evil games (or World of Warcraft), like whenever I press the “reverse” key (S), the actor will start going backwards, but keeping the same rotation (like reversing a car).
Thanks for the help! The movement did work like a charm.
Also I’ve made some modifications on the SpringArm for the camera movement, making the mouse input only move the camera around and now it’s working as I wanted.