Play the animation and the piston will act like a real piston.
7. Use Modify/Properties/Animation to change the frequency of the
TRANSFORM method to 4 and the piston will run up and down four
times.
Let's try to understand why the piston started to go up and down just
like any real piston.
The transform objects requires two parameters; in this example an axis
and a circle. The method evaluates a point from the circle
corresponding the current time. Then it projects the point to the axis
and the parameter value corresponding the projected point on the axis
is the new time. For example, if the projection of the evaluated point
hits the beginning point of the axis, the new time would be 0.0. If the
point hits the end point of the axis, the new time would be 1.0.
In this example we used a circle, but it is possible to use any other
evaluable object as well.
|