transform menu

rotate track


Purpose
For automatically generating a rotation of an animated solid according to its track.

Usage
To use this option first create a track for the active solid by using move and fix event at several frames. Now the solid will move along the specified track as can be seen in the animation menu by clicking play. The solid will not change its orientation, however. This can be done by using rotate track. After clicking the rotate track button, you will be asked whether the local y-axis of the solid should be aligned to the track. This is useful if you want the solid to move with its front (the y-axis) pointing in the direction of the movement (e.g. a rocket which moves along a track). After typing 'y' or 'n', rotate track will calculate the orientations at the fixed frames and fix these. When rotate track is ready, go to the animation menu and click play to see the result.

An "animation axis" is automatically added at the local axis of the solid, so if the object does not rotate around the desired coordinate system, simply adjust the local axes and try again.

Comments
Rotate track will overwrite the existing animation rotations rotx, roty, and rotz with the newly calculated rotations. Rotate track will only fix rotations at the frames that were already fixed (at the control points of the time curves of posx, posy, posz, rotx, roty, and rotz). So if the rotation is not accurate enough you should fix more frames or add control points in the time curve editor of the animation menu.