How do I...
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
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 ).
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 ).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement