SetAngularVelocity() rotates which way?
by Tim Doty · in Torque Game Builder · 04/17/2005 (2:05 pm) · 4 replies
I could have sworn this was working as expected, but I just tried it on a clean application and it behaved the same.
Basically, angles measure in degrees from 0 being vertical (pointing up) in a clockwise fashion. Fine, no problem. So why does setAngularVelocity(20) rotate counterclockwise?
Basically, angles measure in degrees from 0 being vertical (pointing up) in a clockwise fashion. Fine, no problem. So why does setAngularVelocity(20) rotate counterclockwise?
About the author
#2
I've spent the better part of 20 hours trying to figure out why my bees all turn right when the queen bee hangs a left :-)
Between reversing angles and adding or subtracting 90 between formulas and methods, I actually made a few of the bees sick enough to lose their lunches all over the monitor :-)
Next are cows, then people. It's amazing how close the herding AI is between the two :-)
04/18/2005 (2:44 pm)
ROFL!!!I've spent the better part of 20 hours trying to figure out why my bees all turn right when the queen bee hangs a left :-)
Between reversing angles and adding or subtracting 90 between formulas and methods, I actually made a few of the bees sick enough to lose their lunches all over the monitor :-)
Next are cows, then people. It's amazing how close the herding AI is between the two :-)
#3
04/18/2005 (3:00 pm)
Be sure to let us know when you get down to the people version--I know I for one am very interested in squad movement from a herding/flocking perspective!
#4
04/18/2005 (4:49 pm)
@Melv: Well, when I saw it at first I was convinced there was something in my code because I'd gone over the angle stuff a month ago. Turns out due to an update issue I'd ended up using setRotation() rather than using setAngularVelocity() before noticing the behavior (obviously I figured out what I was doing to make the updates an issue and am using angular velocity now).
Associate Melv May
I can't believe this one wasn't spotted earlier! Amazing how slippery those damn bugs are.
- Melv.