Hi, everyone
I’ve been using Kubold’s animset and now i need to get player’s movement start direction from gamepad. I’ve tried Atan2 function but it’s assymetrical and i can’t get it to be from -180 to +180. Maybe there’s an easier way?
Hi, everyone
I’ve been using Kubold’s animset and now i need to get player’s movement start direction from gamepad. I’ve tried Atan2 function but it’s assymetrical and i can’t get it to be from -180 to +180. Maybe there’s an easier way?
Atan2 (Degrees) will give you coordinates from 180 to -179.
Yes, but i need the 0 to be on 12 o’clock and not 3. Maybe i’m missing something and there’s an easy way to convert?
just swap the inputs to Atan2, using MoveRight as A, and MoveUp as B.
Feeling like a slowpoke here Yepp, that did the trick, thanks