Skip to main content
gamedev.net
🔒 Locked

How do I...

Started by syrmakleftis Aug 13, 2003 at 6:24 PM 2 replies 600+ views
Original Post
syrmakleftis
syrmakleftis
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
Keem
Keem
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 ).
syrmakleftis
syrmakleftis
I''m guessing thats what i''m looking for, thanks, i think i''ll try that now.
syrm
syrmakleftis
syrmakleftis
hey, thanks a lot, it worked, i dont think my brain will pop now!
syrm

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.