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.


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.