
94 CHAPTER
6
Transform Nodes
To do a translation in world space, use the
-w0rl
dSpace flag. The following command
will position the object at (4, 3, 1) in world space, irrespective of the number of
parents and their locations.
xform-worldSpace-translation 4 3 1;
To move the object in local space, use the move command. The following statement
will move the object by one unit along the parent's x-axis.
move -relative -localSpace 1 0 O;
The rotation can be set as follows.
xform-rotation 10 30 50;
The scale is applied also with the xf0rm command. The values are given as fractions
rather than as percentages.
xform -scale 0.8 ...