Archived

This topic is now archived and is closed to further replies.

syrmakleftis

How do I...

Recommended Posts

syrmakleftis    122
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

Share this post


Link to post
Share on other sites
Keem    138
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 ).

Share this post


Link to post
Share on other sites