Game Development Community

Can't get rotation of static object to work

by Ade · in Game Design and Creative Issues · 08/08/2007 (7:40 am) · 1 replies

I have a static object on my terrain.
I need to rotate it 90 degrees about the z axis.
However on the world editor inspector for rotation there are 4 numbers:
"1 0 0 0".

No matter what I enter I can only get it to rotate about the y axis.

Obviously I've tried

"1 0 0 90"
"90 0 0 1"

and similar.

#1
08/10/2007 (10:55 am)
Enter this:
0 0 1 90

If I understand correctly, the first three are values telling the engine which axis to rotate around and by what percentage, and the fourth number is the degrees.

For example, if you had:
0 1 0.5 90
The engine would rotate the object 90 degrees around the y axis, and 45 degrees around the z axis.