Adding and Adjusting Flight Paths
 
 
 

In this first exercise, you'll assign a path constraint to the spacefighter and have it fly along a path. You'll also set a few path parameters to improve the flight dynamics of the spacefighter.

Set up the lesson:

This scene includes the following:

Assign a path constraint:

  1. In the Top viewport, select the SpaceFighter object.

  2. Open the Animation menu and choose Constraints > Path Constraint.

    A dotted line now links the spacefighter and the mouse cursor.

  3. Click the green line, Path01.

    Once you pick the path, the spacefighter jumps to the start point of the path.

    (Any kind of spline can become an animation path.)

    Also, the command panel automatically switches to the Motion panel.

  4. From the Motion panel, slide the rollouts up until you can see all of the Path Parameters rollout, if necessary.

    You'll see that Path01 has been added to the path list.

  5. Activate the SpaceCam viewport and play the animation.

    The spacefighter moves along the path, but it doesn't point in the correct direction.

  6. In the Path Options group of the Path Parameters rollout, set the following:
    NoteYou can change settings while the animation is playing.
  7. Play the animation again.

    Now the spacefighter is moving along the path properly, but its flight dynamics don't look very realistic.

Improving the Flight Characteristics

In this section, you'll improve the flight characteristics of the spacefighter. You'll make it move more realistically as it enters and exits turns.

Make the flight more realistic:

  1. Turn on Bank and play the animation again, if it isn't still playing.

    The spacefighter now banks as it goes through the turns. However, the motion is subtle; it needs to be more pronounced. You'll use the Bank Amount and Smoothness settings to make the spacefighter look as though it's banking sharply into the curves of the path.

  2. Set Bank Amount to 7.0.

    Bank Amount controls how far an object rolls to either side of the path it travels along.

    If you were sitting in the cockpit, positive values roll the starfighter to the left and negative values roll to the right. Be careful how high you set Bank Amount. If too high, the spacefighter will roll all the way over. Experiment with different settings and put it back to 7.0 before continuing.

  3. Set Smoothness to 1.0.

    Smoothness controls how rapidly the roll changes as the starfighter moves through bends in the path. Smaller values make the object more responsive to changes in the curve while larger values smooth out jerkiness.

    The spacefighter's motion as it rights itself coming out of the turns is more even. Try increasing and decreasing the Smoothness value to see what happens.

  4. Save your scene as MySpaceFighter01.max.

Animating the Path of the Spacefighter

You can animate the Path Parameters settings for more dynamic-looking animation. In this section, you'll add a bit of drama to the action by animating some settings changes.

Animate path parameters:

  1. Move the time slider to frame 60.
  2. Turn on Auto Key and set Bank Amount to 6.0.

    You'll see a new key added to the timeline at frame 60.

  3. Slide the time slider to 75 and set Bank Amount to 12.0.
  4. Turn off Auto Key and play the animation.

    As the spacefighter enters the second curve, it makes a drastic rolling turn, as if evading a missile or dodging a laser.

  5. Save your scene as MySpaceFighter02.max.

Blending Paths

So far, you've worked with a single path. 3ds Max allows you to combine motion along multiple paths, which can result in some interesting effects.

Set up the lesson:

Fly the spacefighter along blended paths:

  1. Select SpaceFighter and open the Motion panel.

    The spacefighter is already constrained to Path01.

  2. On the Path Parameters rollout, click the Add Path button.
  3. Select Path02, the red path.

    The spacefighter is now positioned halfway between the two paths. This is because each path is influencing the spacefighter equally.

  4. Click the Add Path button again to turn it off.
  5. Activate the SpaceCam viewport, if it's not already active, and play the animation.

    The Weight setting controls how much the spacefighter is affected by each path.

  6. In the path list on the Path Parameters dialog, highlight the Path01 entry and set its Weight value (immediately below the list) to 25.0.
  7. Play the animation again.

    The spacefighter follows Path02 more closely because it has a greater weight then Path01. Experiment with different Weight settings for each path and see what happens.

  8. Save your scene as MySpaceFighter03.max.

Next

Animating the Spacefighter with Constraints and Controllers