Sign in to follow this  

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

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

This topic is 3937 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this