I know i should know this, but for some reason i can't get it straight in my head.
Which Axis is angle 0 parallel to?
Flashvar angle:Number = Math.atan2(Y,X) *180/Math.PI
angle = 0 where X=1 Y=0;
so angle 0 is facing Right.
parallel to the X axis.
angle = 0 where X=1 Y=0;
so angle 0 is facing Right.
parallel to the X axis.
Original thread: https://box2d.org/forum/viewtopic.php?t=6860