Game Development Community

A question on %shape.setTransform

by Adam · in Torque Game Engine · 06/09/2005 (11:23 pm) · 3 replies

Hi guys. I encountered this problem when im reading the script (turnshape.cs) in chapter 3. It's in page 112. There are 7 coordinates in the bracket ("-90 -2 20 0 0 1 0"); , but I can't figure out what does the the 4th to 6th digit does. Can anyone explain to me please? Thank You.

#1
06/10/2005 (3:05 am)
"X Y Z rX rY rZ rD"
AFAIK, the frist three are for your translation along the X,Y,Z axis. The next 4 are for doing a rotation. With rX rY and RZ specifying a vector around which the rotation will occur, rD specifying the angle of rotation (rad or deg I'm not sure which).
#2
06/10/2005 (5:08 am)
I guess you skipped reading/following the steps in the "Simple Direct Movement" section on pages 105 and 106 of chapter 3.
#3
07/22/2009 (5:17 am)
would you please explain detaily about setTransform function especially about last parameter(degree or radian)?