Jump to content
  • Advertisement
Sign in to follow this  
ajm113

How do I get a cube to move very slowly? Like a earth rotation?

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

I am using lesson 6 and I want my cube to move very slowly like a earth rotation. I play around with the xrot+=-0.1f; stuff but it's still too fast. Is there a way to slow it down more? Sorry to be asking questions but I am new to OpenGl and I want to have a bit more small details on this so I can under stand it better. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
The simple solution is to keep adding zeroes until you are satisfied =D The more correct solution would also involve decoupling the rotation increments from the rendering/framerate - at your stage you are probably not ready for this yet, so I wouldn't worry about it too much.

Share this post


Link to post
Share on other sites
Enabling vsync will also help stabilize (and reduce) the frame rate, if it is not already enabled. This can be done through your video card settings.

Share this post


Link to post
Share on other sites
Thanks! I used this. It mite be alital fast but I think it looks cool.

xrot+=0.0f; // X Axis Rotation
yrot+=0.001f; // Y Axis Rotation
zrot+=-0.0002f; // Z Axis Rotation

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!