Rotating/orbitting objects in D3D
Hi, I was wondering how I would do the matrix or vector math for trying to make an object rotate about a fixed point. I am using Direct3D, and I have a cube, and it needs to orbit about a fixed point at a constant radius. The same side of the cube always faces directly towards the point it is orbiting about. So the path the cube can follow will be anywhere along the outside of a sphere.
Now I can easily make it circle around the point in just 2 dimensions, but adding the 3rd dimension brings in some complex math and I was wondering if the matrix/vertex/vector math functions of D3D can help me. I am really good with math having taken college calculus, but I havent ever dealt with matrixes and 3dimensions very much
So can anyone help me out with how I would set it up to move the cube around that point?
Possibility
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement