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.
bug: getSpin(), setSpin() units
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: bug: getSpin(), setSpin() units
Yeah, missing TO_DEG in there ... thanks.
Degrees and naming will remain, though.
Degrees and naming will remain, though.
Re: bug: getSpin(), setSpin() units
It's radians now.
EDIT: lol
EDIT: lol
Last edited by kaishaku on Sun Nov 05, 2017 9:16 pm, edited 1 time in total.
- master both
- Party member
- Posts: 262
- Joined: Tue Nov 08, 2011 12:39 am
- Location: Chile
-
- Party member
- Posts: 234
- Joined: Mon Aug 29, 2016 8:51 am
Who is online
Users browsing this forum: Ahrefs [Bot], Amazon [Bot], Bing [Bot] and 18 guests