ObjectTemplate.SetRotation

From Pilot_51's Wiki
Revision as of 20:28, 17 November 2008 by 68.40.243.145 (talk) (New page: == MDT description == ''SetRotation'' sets the direction and angles of a child object attached to the current object by the AddTemplate command. The angle is in terms of yaw/pitch/roll. Yo...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

MDT description

SetRotation sets the direction and angles of a child object attached to the current object by the AddTemplate command. The angle is in terms of yaw/pitch/roll. You are looking down the Z axis and Y is up, X to the right. Imagine turning your head to left, then the right. Your head is rotating in the XZ axis, the first parameter (aka yaw). Now imagine looking up, then down. Now your head is rotating in the YZ axis, the second parameter (aka pitch). Now, keep looking forward, but tilt your head to the left, then right. It is rotating in the XY axis, the last parameter (aka roll). The units used for this parameter are degrees (1 - 360) but you can have negative degrees as well. If you define multiple rotations, they happen in this order.

The angle is relative to the orientation of the parent object. If this command is omitted, the angles will be at 0/0/0.

Source and more details

Additional Description