atan2 in cpVect

Discuss any Chipmunk bugs here.

atan2 in cpVect

Postby nutpor » Sat Sep 15, 2007 9:55 am

In cpVect.cpp :
Code: Select all
__inline cpFloat
cpvtoangle(const cpVect v)
{
   return atan2(v.x v.y);
}


There should be :
Code: Select all
   return atan2(v.y, v.x);


Thanks for great physics engine! :D
nutpor
 
Posts: 1
Joined: Sat Sep 15, 2007 9:49 am

Re: atan2 in cpVect

Postby slembcke » Mon Sep 17, 2007 10:21 am

Whoops :oops: I always had plans for using that function, but then never did. Never got tested.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron