2009
6 Increase the Obstacle Parameters rollout > Compute Vectors group >
Range setting.
As you increase this setting, you'll see the range volume grid expand. The
range volume should enclose the space in which crowd members need
to start turning in order to avoid the object.
7 Turn off Display group > Show Lattice and Show Range so that the vector
field will be more easily visible when generated.
8 Turn on Display group > Show Vector Field.
9 In the Compute Vectors group, click the Compute button. This generates
the vector field.
TIP To make the vector lines more evident, increase the Display group >
VectorScale setting.
The vectors appear as blue lines surrounding the obstacle object. One
vector is computed for each lattice intersection within the range volume
grid. Each vector matches the normal of the object at the point on the
object's surface closest to the lattice point.
The vector force falls off with distance from the object, as shown by the
progressively shorter vector lines toward the grid perimeter.
10 Add Crowd on page 4819 and Delegate on page 4811 helper objects.
11 Select the Crowd object and open the Modify panel.
12 In the Setup rollout > Behaviors group, click New.
13 In the Select Behavior Type dialog that is displayed, choose Space Warp
Behavior, and then click OK.
14 In the Space Warp Behavior rollout that appears, click the button (initially
labeled “None”), and then in a viewport, click the Vector Field space
warp.
TIP You might find it easier to use Select By Name to select the space warp.
15 In the Setup rollout, click the Behavior Assignments button, and use the
Behavior Assignments And Teams dialog on page 4845 to assign your
delegate or delegates to the space warp behavior.
16 Add any other objects or behaviors appropriate to the simulation.
4784 | Chapter 17 character studio