I dont know where I calculated wrong , my character’s move direction got invert after CalculateMovement() return the camera’s x value , when I pressed A and my character turned to the right direction which is D, I had to set “-right” to make it work , but in the video the right and forward they both not “-”.
The posted code looks correct. Take a look in your Controls (Input Actions) and make sure that your Left is A, and your Right is D in the WASD portion of your movement.
thank you so much i just checked my input system settings I made the opposite setting , its a bit weird before giving value to the camera it moved correctly with A and D so i didnt think of my input got wrong ;/
1 Like
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.