Graphics Programs Reference
In-Depth Information
Figure 14.14
-3 to +3 grid units
Target
Owner
Animation of the cube
Figure 14.15
rotation, or scale of an object
in an animation. We will use the
translation of a sphere to control the translation of a cube.
Set up a scene as shown in Figure 14.14. The object to
which the constraint is applied is called the owner. This is the
object that will be controlled; in this case, it's the cube. The
controlling object (the sphere) is the target. Set up an anima-
tion of the cube to translate along the
x
-axis from -3 grid units
at frame 1.00 to +3 grid units at frame 100.00 (see Chapter 9
for a refresher on animation basics).
With the animation of the cube created, select the cube in
the 3D window and add an action constraint by going to the
properties window - “Object Constraints” button, clicking on
“Add Constraint,” and selecting “Action” from the drop down
menu. Set the values in the action constraint panel as shown
in Figure 14.15.
•
Target.
The controlling object (sphere).
•
Action.
The animation of the cube (“CubeAction”).
•
Translation.
“Location X,” movement along the
x
-axis.