Creating a group

This code creates the wagons shown in Figure 132. The wagon on the left is the original, untransformed wagon. The wagon on the right is translated by 200 world-coordinate units in the Y direction, and its wheels are rotated 90 degrees.


Before looking over the code, study the diagram in Figure 133 to help you understand the hierarchical arrangement of the wagon parts. The wagonAwayWheels group corresponds to the two wheels that draw behind the wagon body, and the wagonTowardWheels group corresponds to the two wheels that draw in front of the wagon body.



[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker