- Home /
Movement Bug
My game was doing fine, until this happened: I looked right, and then pressed 'W', but it went left. I know what is going on, but I don't know how to fix it. Basically, here's what happened: I look behind me, press 'W', but I don't go forward. I went backwards. Because it's going the global forward, not the local forward. Yes, I'm new.
Can you post your movement code and what is the game ? because if it is a car Racing game you can just change de câmera rotation, and that should not affect the direction of foward from your car object.
Well, I figured out the script wasn't really made for FPS games, and found out the standard assets has a FPSController.
Answer by ChicathecChickenProgrammer · Jul 31, 2016 at 06:22 PM
Either when making a project, or right-clicking in the project assets, you can import packages. Import the Characters package, and tada! FPSController Prefab!!
Your answer
Follow this Question
Related Questions
Sphere overlaps vertical box collider and stutters 1 Answer
Moving an ob around a sphere 1 Answer
How to make first person movement with keyboard, on new input system 1 Answer
Move 3D rigidbody sphere in the direction of it's rotation, controlled by the mouse. 0 Answers
How to keep an object within a circle/sphere (radius) - NO RECTANGLE 3 Answers