Box2D Forum Archive
Search Settings
Home › Box2D Ports › Flash

Which Axis is angle 0 parallel to?

Flash
H Hyakugei
Apr 29, 2011 17:41
I know i should know this, but for some reason i can't get it straight in my head.
S sketchbookgames
Apr 29, 2011 22:48
var 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.

Original thread: https://box2d.org/forum/viewtopic.php?t=6860

This is an unofficial, read-only archive preserved for the community. Original site: https://box2d.org

Want your posts removed? See removal requests or email [email protected]. · Preserved with Forum Ark · Privacy · About