- Home /
FPS character controller directions swapped
Hi, I've a character that is required to move by keyboard actions. I've used the standard FPS character controller script. but I've found that when I press 'a'/'d' it moves forward/backward instead of right/left, when pressing 'w'/'s' it moves right/left instead of forward/backward. Here are my Input settings. thanks in advance.
Answer by DricoJD · Jun 20, 2013 at 07:35 AM
I think this is the problem I had before and spent ages trying to solve it.
Usually the mesh or the object you are moving is facing a wrong axis position. TO fix this:
1) Select the object
2) Bring up the rotation axis
3)Rotate along the blue axis so that in the inspector you get the negative value to what you already had in the inspector - for example 180 must be changed to say -180 or -180 has to be changed to 180.
4) Play mode and test.
5) if it does not work:
6) keep rotating all axis even Z axis until you can find your original position.
THE NEXT TIP MIGHT WORK:
Go into the object and select in the inspector the cog|settings icon. Then click reset value. Go into play mode and test.
Hi DricoJD, you are right about the cause of the problem which is the character face original direction. I applied your first solution with some modification; I've rotated the character 90/270 around the Y axis (dragging the blue rotation circle), and that worked.
thanks
Your answer
Follow this Question
Related Questions
Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers
Input.GetKeyUp ignores alternative buttons... 1 Answer
Is it good to specify what Actions of the Input Manager do on several Scripts? 1 Answer
Accelerometer calibration works on Unity Remote, but not on device after build.. 1 Answer