Sign in to follow this  
ajm113

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

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

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