🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Camera Views

Started by
0 comments, last by mesHead 24 years ago
Heres comes another stupid question ... Does anyone know how to rotate around an object rather than have the object rotate around its axis. for instance ... instead of having a cube rotate around its center, is there any way to "pan" around the cube. Thanks for any input. -- mesHead.
mesHead
Advertisement
After setting the modelview matrix to the origin of the object you want to pan around, glRotate around the axis you''re panning around, then glTranslate however far you want the camera to be away from the object. To pan, change the amount of the rotation.

Morbo

This topic is closed to new replies.

Advertisement