atan2 in cpVect

Discuss any Chipmunk bugs here.
Post Reply
nutpor
Posts: 1
Joined: Sat Sep 15, 2007 9:49 am
Contact:

atan2 in cpVect

Post by nutpor »

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
User avatar
slembcke
Site Admin
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: atan2 in cpVect

Post by slembcke »

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/
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest