- Home /
Rotate a calculated motion
I'm not the brightest person with vectors, so here we go:
I have a joystick input, and the standard first person script (mobile) calculates the movement. The problem is that the movement applied to my character is in the wrong direction.
here a drawing:
Thank you, that did the trick. If you could make it into an answer, I can accept it :)
Answer by Benproductions1 · Jan 26, 2014 at 12:33 AM
just multiply the vector by a Quaternion rotation thats -90
degrees around the y
axis.
Your answer
Follow this Question
Related Questions
How to get our character controller script to make our player move? 1 Answer
3D Character Controller slowing down the higher the slope angle (both up and down) 1 Answer
How to keep velocity and add onto it from any rotation. 1 Answer
Player isn't affected by AddForce(), Lerp() etc. 1 Answer
Character Controller Movement - Different speeds on different axis 1 Answer