Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by Worldkiller556 · Jan 23, 2017 at 09:33 PM · movementissue

my wasd keys are moving the wrong way

my keys are moving in a different directions d and a is up and down w and s are left and right Can someone help me with the issues?

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by JJMGsoftworks · Jan 24, 2017 at 10:02 AM

This can be a number of things. Read the whole answer and then see what works

  • Is your camera facing the right way

  • Is your object facing the right way. Sometimes even the object itself could be built the wrong way around in a 3D editor for Unitys standards

  • You can check Input Managerby going to Edit-Project Manager - Input

  • Check how your object reacts to input it could be as simple as switching the input around

This would be in psuedo code switching

If(key down A) Minus on y

With

If(key down on A) Plus on y

90 percent of the time the last two points are the problem. If the camera is the wrong way around, though make sure it's fixed or it could come against you in other code. I can't think of anything else at the moment if I do I'll add it in. Let me know if this works.

Comment
Add comment · Show 3 · 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 daggertok · Aug 28, 2018 at 01:06 PM 0
Share

@JJ$$anonymous$$Gsoftworks hi ) I have same issue, and I think its a camera rotation thing, like my W moves not up but up + right, same with other keys, there's a lot done on game at the moment, and I cant just rotate camera, and I couldnt find a way to rotate all game objects together to fix controls. So I need your advice, what can I do to fix it? maybe change behavior of W A S D keys?

avatar image JJMGsoftworks daggertok · Aug 28, 2018 at 03:20 PM 0
Share

So this sounds like a complicated problem. and the simple solution is rather messy. You can do as you suggest(with wasd), but this is bad because it means any more work you do might need to be adapted to an incorrect camera, as well as potentially effecting imported assets in future. I would suggest if there is a good bit of work to do, fix the camera, then rotate the world around its center to match(maybe try temporarily parenting all seen objects to an empty). Are you using a unity standard asset, im not sure why you move diagonally, you would need to be sure your camera is incorrect before you go about fixing it and be sure the problem is not with the input controls you have setup.

avatar image daggertok JJMGsoftworks · Aug 29, 2018 at 11:41 AM 0
Share

Ok thanks, I'll check camera once again, then I think I'll try to rotate everything

avatar image
0

Answer by Worldkiller556 · Jan 24, 2017 at 08:51 PM

it was just the camera rotated out of place thanks for your assistance

Comment
Add comment · Show 1 · 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 JJMGsoftworks · Jan 24, 2017 at 09:17 PM 0
Share

No problem at all. It would be cool if you would mark my answer as correct if it made a difference. Good luck on your en-devours.

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

111 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 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 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 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 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 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 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 avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

,Why is my character sliding? (Rigid Body) 0 Answers

Why is my character sliding? (Rigid Body) 1 Answer

IsTouching() not working right after Colliders2D movement/instanciation 0 Answers

First person controls for GoogleCardboard 2 Answers

Cant Move towards Right and Jump at same time? 2 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