Using a Helper to Control Changes in Direction
 
 
 

Bouncing a ball on an uneven surface can cause changes of direction. In this lesson, you use a point helper to control those changes, making the animation easy to edit.

Open the scene:

Remove the motion in X and Y:

  1. Select the ball, right-click it, and choose Curve Editor from the quad menu.
    TipIf the tracks and curves don’t appear when the Curve Editor opens, pan in the controller window at the left until you see them, then click to highlight the position tracks.
  2. Highlight the X Position track. Drag to select all keys in the curve window, and then press Delete.

    Now the ball bounces in place, with no forward motion.

  3. Highlight the Y Position track, and delete all its keys as well.
  4. Close the Curve Editor.

Now you want to add more “chaotic” motion to the ball: When it strikes the face of a tile, it should continue in the same direction, but when it strikes a groove with grout, it should change its direction.

You could animate this lateral motion using the ball itself, but a better method is to use a helper object: With this method, the helper animation is independent of the ball and its bounce track, so if you later need to change the lateral motion, you can do so without affecting the bounce.

Create a Point helper to control the ball:

  1. On the Create panel, turn on (Helpers), then in the Object Type rollout, click to turn on Point.
    NoteMany animators use the Dummy helper instead of Point. The advantage of using a Point helper is that you can adjust its size without having to scale it. Scaling a helper in a hierarchy will affect its children objects: This is an effect that usually you want to avoid.
  2. Click (Maximize Viewport Toggle) to display all four viewports.
  3. If you are not at frame 0, click (Go To Start).
  4. In the Top viewport, click near the golf ball to create the Point helper.
  5. On the Point helper’s Parameters rollout, click Box to turn it on, and then change the size of the box to 40.
  6. On the main toolbar, click (Align), and then click the ball.
  7. In the Align Selection dialog Align Position (Screen) group, turn on X Position, Y Position, and Z Position. Then choose Center for both Current Object (the Point helper) and Target Object (the golf ball).
  8. Click OK to close the Align dialog.

Link the ball to the Point helper:

  1. In the Top viewport, zoom in to get a better view of the ball and the helper.
  2. On the main toolbar, turn on (Select And Link).
  3. Select the ball, then drag to the box of the Point helper, and release the mouse.

    Now the ball is a child of the Point helper: When you move the point, the ball will follow along.

  4. Move the Point helper.

    The ball and its trajectory both follow the Point.

  5. Undo the Point helper movement.

Animate the changes in direction:

To make the ball move erratically, you want to give it lateral motion (via the Point helper) every time the ball hits the ground. If the ball hits a tile, it should continue forward. If the ball hits grout, it should change direction.

It’s easiest to move the Point in the Top viewport, while you watch the effect in the Perspective viewport.

  1. In the Top viewport, click (Zoom Extents) so you can see all of the floor, once again.
  2. Turn on (Auto Key).
  3. Drag the time slider to frame 10. This is the first frame where the ball touches down.
  4. In the Top viewport, move the Point along its X-axis, forward about one tile. The ball should land on a tile.
  5. Drag the time slider to frame 37. Move the point along its X-axis again, about one and a half tiles. This time, the ball should land on grout.

    At frame 37, the ball lands on grout.

  6. Drag the time slider to frame 59. At this frame, move the ball in both X and Y, to the right and onto grout again.

    At frame 59, the ball has veered to the right, only to land on grout once again.

  7. At frame 81, change the ball’s direction once more, so it moves to the left.
  8. By now, you should have the general idea. Move the time slider from one floor-contact frame to the next. After frame 81, these frames are 101, 117, 134, 147, 160, 173, 183, 193, 202, 219, 226, and 230.

    Keep the ball moving laterally in the same direction if it lands on a tile, and change the lateral direction if it lands on grout.

    Here is how the completed scene looks, after animating the helper:

Save your work:

Summary

This tutorial introduced several basic techniques of animating with Auto Key:

This tutorial also introduced you to some of the general principles of animation: