Game Development Community

Is there a reason that 0 Degrees is along the Y axis instead of the X?

by Lonnie Shaw · in Torque Game Builder · 04/20/2011 (9:56 am) · 3 replies

I ran across something that is puzzling me. I was getting some strange results when tweaking the angles of moving objects because I made the assumption that 0 was along the X axis going to the Right, 90 is along the Y axis going up, etc... But alas this does not seem to be the case. I wrote a simple function to echo the Angle, Speed, and (X,Y) of the object when I hit Space. Upon hitting Space at a few key spots with the object moving at certain angles I discovered that the whole angle system was turned on it's side. 0 is Up, 90 is Left, 180 is Down, and 270 is Right. What puzzles me is WHY this was done. I do not see a logical reason to turn the Angles on their side like that. I am hoping someone at GG can satisfy my curiosity.

About the author

Recent Threads


#1
04/20/2011 (10:20 pm)
I think it's just a convention in 2D game development. Like the Y axis increasing as you go down the screen.

Setting something's angular velocity to zero degrees and having it move up makes sense to me, even if this is contrary to the mathematical convention.
#2
04/24/2011 (2:49 pm)
@Conor: I understand there is a reason for it, but my inquisitive mind wants to know WHY the DEVs at GG decided to turn the angle system, that everyone has been learning all their life in school, on it's side.
#3
05/20/2011 (4:39 am)
Bump