Jump to content
  • Advertisement

Archived

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

syrmakleftis

How do I...

This topic is 5454 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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 ).

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!