LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: gyroninja on December 28, 2011, 22:16:50

Title: Rotation Dilemma
Post by: gyroninja on December 28, 2011, 22:16:50
I have a large world made up of 9 x 9 chunks made up of 16 x 16 x 128 blocks. I want to rotate the whole world. When I pass the rotate to all the blocks they just rotate independently. I want them to rotate as a whole all rotate around the "camera".
Title: Re: Rotation Dilemma
Post by: CodeBunny on December 30, 2011, 23:45:32
Depends on how you are rendering the scene. If you are just passing vertices to the ModelView matrix (no glLoadIdentity() calls, etc), then using glRotate should work just fine.