Answer the question
In order to leave comments, you need to log in
How to rotate a cube around fixed axes?
Hello.
I am writing a project in C#, in OpenGL (opentk library)
So, there is a cube, it must be rotated with the mouse left / right, up / down.
So, the question is:
How to make the cube rotate around two axes that are in a plane parallel to the monitor screen ?
Point at least to a thought or to keywords for which to google. Thanks in advance.
GL.Rotate(<угол наклона>, Vector3d.UnitY);
GL.Rotate(<угол наклона>, Vector3.UnitX);
Answer the question
In order to leave comments, you need to log in
Can you clarify what it means to rotate around two axes? alternately mean?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question