Game Development Community

How to rotate an object

by timmport · in Torque Game Engine · 07/13/2005 (6:15 pm) · 2 replies

I have done some of Kevin Harris's tutorials and I know enough to get a dts into my scene. I have an object rotating now using: rotate = true; which rotates the model around it's Z axis. How would I rotate it around its x or Y axis instead?

#1
07/14/2005 (8:29 am)
You would have to change the rotation algorithm in the Item Class in C++
#2
07/14/2005 (9:25 am)
So to have a model do the most basic type of animated rotation around diffrent axis I need to rewrite a class? In many scripting languages there is something like:

rotate (0 1 0 20)
{
my_model.dts
};

Does anyone have any code snippets for revising the Item class so that I can rotate a dts around diffrent axis other than the dafault z?