Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which direction is zero (0) in Box2D?

Tags:

box2d

jbox2d

Which direction is considered 0 degrees in box2D? Is it north, south, east, west? And then do the angles increase clockwise, or counter-clockwise?

I've read through the manual and it doesn't seem to mention this anywhere.

like image 312
Jim Avatar asked Jan 19 '23 19:01

Jim


1 Answers

Box2d actually uses radians... 0 would correspond to "East".

http://en.wikipedia.org/wiki/Radian

enter image description here

like image 151
Michael Fredrickson Avatar answered Mar 02 '23 15:03

Michael Fredrickson