How do I...

Started by
2 comments, last by syrmakleftis 20 years, 8 months ago
ive been working on this damned thing for a long time and my attention span just died. how exactly would i go about making radial turning style with a constant speed. i just want to know a good method to change direction/angle. if you help me out, ill give you a haug, or not, whichever you prefer. syrm
syrm
Advertisement
radial turning style? What exactly do you mean? If you mean you just want something to go around in circles then its simple

mCurrentAngle += deltaTime * mAngularVelocity;

Where mCurrentAngle is the angle your object is at, mAngularVelocity is number of radians per second it rotates through and deltaTime is the time since the last frame ( to keep it framerate independant, simple euler integration ).
I''m guessing thats what i''m looking for, thanks, i think i''ll try that now.
syrm
hey, thanks a lot, it worked, i dont think my brain will pop now!
syrm

This topic is closed to new replies.

Advertisement