View Full Version : Rotation

11-23-2004, 02:35 PM
I know this is probably a stupid question, but how do you rotate a series of vertices around a particular point, rather than the axis? I want to rotate 3 vertices (triangle) around one of the triangle's vertices, in the y direction (where y is 'up') but can only rotate around the global y-axis. I've tried gltranslating so that the point I want to rotate around is on the global y-axis, rotating the points and then translating it back to the original position, but can't get it to work.

Any help would be greatly appreciated.


11-23-2004, 09:13 PM
Hi !

Rotation is always done around the world origin, so you can rotate around any point you want by using glTranslate to move the pivot point.