PDA

View Full Version : glRotate and getting new vertices



weirdsteve
03-21-2012, 06:25 PM
Hello there,
I am doing an application for my project at university and didnít know if there was a way to get new vertices just X and Y after a shape has been rotated via glRotatef().
My application is basically a crane which can pick up a box then move it around the craneís position and place it back down. This shall then need to mark the location of the box and allow it to be left behind.

I have been trying for hours to achieve this, and if I canít get this bit done, my application is basically useless.

Thanks Steve

tonyo_au
03-21-2012, 09:35 PM
Try looking at this example
www.swiftless.com/tutorials/opengl/rotation.html (http://www.swiftless.com/tutorials/opengl/rotation.html)