Download User Guide.book
Transcript
112 Translating and Rotating Movables To use the Translation dialog box 1 Select the Movable object that you want to move. Note Select only one object. You cannot access the Translation dialog box with multiple objects selected. 2 In the Property pane, click the Editable tab. 3 Double-click the Translation property. The Translation dialog box displays. Chapter 12 Editing 3D Objects However, unlike the Vect3d data type used with the Translation property, you are not expected to calculate an intelligent value to use for the Orientation value. Instead, WorldUp provides the Rotation dialog box, which uses Euler angles rather than quaternions. Euler angles provide an easy way to achieve the rotation that you want, but they are inefficient since there are multiple ways to achieve that rotation. For example, (0, 180, 0) and (0, -180, 0) result in the same position. When you use the Rotation dialog box, WorldUp converts the angles that you set into a quaternion and the Rotation property is updated with the converted value. To use the Rotation dialog box 1 Select the Movable object that you want to 4 Drag the X, Y, and Z sliders as appropriate to position the object. You can see the object move in the Development window as you drag the sliders. 5 To adjust the speed at which the object moves, drag the slider at the bottom toward Slow or Fast. 6 When you are finished, click Set to apply the rotate. Note Select only one object. You cannot access the Rotation dialog box with multiple objects selected. 2 In the Property pane, click the Editable tab. 3 Double-click the Rotation property. The Rotation dialog box displays. new value and close the dialog box. Rotating Movables from the Property Pane You can rotate Movable objects from the Property pane by modifying the Rotation property value for the object. The Rotation property has an Orientation data type, which is a quaternion. This data type is used for accuracy and efficiency since, unlike Euler angles, there is only one way to achieve a result with a quaternion. For more information on WorldUp data types, see the WorldUp Programmer's Guide. 4 Drag the X, Y, and Z sliders as appropriate to position the object where you want it. You can see the object rotate in the Development window as you drag the sliders.