bug: getSpin(), setSpin() units

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
kaishaku
Prole
Posts: 14
Joined: Sun Aug 31, 2008 10:42 pm

bug: getSpin(), setSpin() units

Post 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.
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

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

Post by rude »

Yeah, missing TO_DEG in there ... thanks.

Degrees and naming will remain, though. :)
kaishaku
Prole
Posts: 14
Joined: Sun Aug 31, 2008 10:42 pm

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

Post by kaishaku »

It's radians now. :3

EDIT: lol
Last edited by kaishaku on Sun Nov 05, 2017 9:16 pm, edited 1 time in total.
User avatar
master both
Party member
Posts: 262
Joined: Tue Nov 08, 2011 12:39 am
Location: Chile

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

Post by master both »

Image
KayleMaster
Party member
Posts: 234
Joined: Mon Aug 29, 2016 8:51 am

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

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

Who is online

Users browsing this forum: No registered users and 90 guests