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?
#2
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?
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?
Torque Owner Bruno Grieco