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?
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.
@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?
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.
Ok thanks, I'll check camera once again, then I think I'll try to rotate everything
Answer by Worldkiller556 · Jan 24, 2017 at 08:51 PM
it was just the camera rotated out of place thanks for your assistance
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
