Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by waleedmm · Jun 20, 2013 at 04:08 AM · inputdirections

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.

alt text

axis_problem_capture.png (24.5 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

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. 1) Select the object

  2. 2) Bring up the rotation axis

  3. 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. 4) Play mode and test.

  5. 5) if it does not work:

  6. 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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image waleedmm · Jun 21, 2013 at 11:53 AM 0
Share

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

avatar image DricoJD · Jun 21, 2013 at 11:57 AM 0
Share

No problem, glad I could help.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

15 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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

Differentiate left, right and both mouse inputs 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges