Jump to content
  • Advertisement


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

Rakka Rage

turning at a constant rate?

This topic is 5618 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

whats the formula to turn at a constant rate... now i just turn 1 degree every time i render a frame which is kinda lame, turn superfast in release mode and slow in debug desired time to complete rotation = 30 secs = foo 360/foo*fps=blah-ack thanks

Share this post

Link to post
Share on other sites
You wish to turn 360 degrees in 30 seconds? That's 12 degrees every second. So, if your frame takes T seconds to draw, then you should turn T * 12 degrees for that frame. This makes the rate of turn constant to time, which is what I believe you are asking. Hope that helps.

Jason Doucette - online resume page: www.jasondoucette.com
projects / games, real-time graphics, artificial intelligence, world records, wallpapers / desktops / backgrounds
"Great minds discuss ideas, average minds discuss events, small minds discuss people." - Anna Eleanor Roosevelt, 1884-1962

[edited by - Jason Doucette on June 4, 2003 9:34:42 PM]

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!