Hi! I’m having some problems trying to build a controller that rotates acording with the arrow keys. Someting like the caracter Link, in the game A link to the past, when the player presses left, the the caracter switch to the left and runs to the left. The same should work to the diagonals.
The pre fabs creates a player that rolls to the sides but I can’t “see in numbers ou degrees” how much it has rolled…
I’ve tried to use the World.rotate, but I’m having only buggs.
Usually I’ve set rotations directory through the Vector3 value, like so:
transform.eulerAngles = Vector3(0,270,0);
But I can’t quite understand from your code what bug you might be getting.
The best information I can give you is to take a look at the following controller example. I’m not sure what bugs you’re running into, but this controller is available somewhere in the animation examples, and does I think what you’re asking.