how would I rotate an object around an object, such as rotating an object in circles around another object? Preferably using GL.Rotate and as little math as possible!
GL.Rotate
defines a rotation matrix that rotates around (0, 0). If you want to rotate around a pivot (pivotX
, pivotY
) you have to:
e.g.:
GL.Translate(pivotX, pivotY, 0); // 3. move back
GL.Rotate(angle, 0, 0, 1); // 2. rotate
GL.Translate(-pivotX, -pivotY, 0); // 1. move pivot to (0, 0)