Game Development Community

GetLinearVelocityPolar() returns negative numbers

by Jacob Wagner · in Torque Game Builder · 07/28/2005 (7:09 pm) · 0 replies

Maybe I don't understand something about angles, but:

getRotation() returns only numbers from 0-359.99999999999

the first result (angle) of getLinearVelocityPolar returns 0-190 the same as getRotation, but then if you turn past 190 , for instance if you turned to what was going to be 270 for instance, it instead reports it as -90.


Just seems inconsistent in that 2 functions that return an angle would act differently, but maybe I'm out of the loop on something. Thanks.