View Full Version : Rotating a rectangle about a point....
08-23-2008, 05:54 AM
I want to rotate a rectangle about a point, but I want the bass to stay put while the rest of the block moves..
08-25-2008, 02:30 PM
The bass (http://www.bigtimbercreek.org/fish_lm_bass.jpg)?
If you make a rotation around a point the only point that stand still is the pivot.
You can compute the rotation with a rotation matrix (http://en.wikipedia.org/wiki/Rotation_matrix).
08-25-2008, 02:36 PM
No, I think he meant the bass (http://www.samsontech.com/products/relatedDocs/Hartke_Bass_Gig_Pack.jpg).
Anyway, a combination of glRotate/glTranslate should do the trick if you are lost in matrices.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.