Page 1 of 1

bug: getSpin(), setSpin() units

Posted: Tue Sep 09, 2008 12:20 am
by kaishaku
setSpin(10) sets spin to 10 radians
getSpin() returns 573 degrees
setSpin(getSpin()+10) sets spin to 583 radians

I'd vote for dealing only with radians here, and maybe
rename the functions get/setAngularVelocity so the API
maintains the convention of primarily mirroring box2d.

Re: bug: getSpin(), setSpin() units

Posted: Thu Sep 11, 2008 9:59 pm
by rude
Yeah, missing TO_DEG in there ... thanks.

Degrees and naming will remain, though. :)

Re: bug: getSpin(), setSpin() units

Posted: Sun Nov 05, 2017 4:23 pm
by kaishaku
It's radians now. :3

EDIT: lol

Re: bug: getSpin(), setSpin() units

Posted: Sun Nov 05, 2017 5:17 pm
by master both
Image

Re: bug: getSpin(), setSpin() units

Posted: Sun Nov 05, 2017 7:33 pm
by KayleMaster
kaishaku wrote: Sun Nov 05, 2017 4:23 pm It's radians now. :3
Finally you can finish your game! :awesome:

EDIT: Oh shit I didn't notice OP necrobumped ! mind = blown