In this program I made, the spaceship rotates fine when it's in the middle, but it starts doing weird stuff if you move it to the sides. How can I stop this?
Printable View
In this program I made, the spaceship rotates fine when it's in the middle, but it starts doing weird stuff if you move it to the sides. How can I stop this?
There are 2 classmodules missing... sorry!
Heres one....
I didnt download the project, but you are probably multiplying matricies in the wrong order. I assume you have a rotation matrix, and a translation matrix. Try flipping the order you pass them into the multiplication function. That should help.
Z.
Thanks Zeai, it works now :)