atan2 in cpVect

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

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

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

Who is online

Users browsing this forum: No registered users and 0 guests