9
Changing Delegate Orientation and Speed 1167
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 g roup, click the
Compute button. This generates the vector
field.
Tip: To ma ke the vector lines more ev ident,
increase the Display group > VectorScale
setting.
The vectors appear as blue lines surrounding
theobstacleobject. Onevectoriscomputed
for each lattice intersection within the range
volume gr id. Each vector matches the normal
oftheobjectatthepointontheobject’ssurface
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 (page 2–1187) and Delegate 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 di alog that is
displayed, choose Space War p Behavior, and
then click OK.
14. In the Space Warp Behavior rollout that
appears, click the button (initia lly labeled
“None”), and then in a viewport, click the
Ve c tor F i e l d s p a c e w ar p.
Tip: You mig ht find it easier to use Select By
Name to select the space warp.
15. In t he Setup rollout, click the Behavior
Assignments button, and use the Behavior
Assignments And Teams dialog (page 2–1200) to
assign your delegate or delega tes to the space
warp behavior.
16. Add any other objects or behaviors appropriate
to the simulation.
17. Select the Crowd object, and then solve the
simulation by clicking the Solve rollout > Solve
button.
18. Fine tune the behavior associated with the
Ve c tor F i e l d s p a c e w a r p by a djus t i n g t h e
Lattice parameters (page 2–1242) and Obstacle
parameters (page 2–1242).
19. Continue computing the vector field and then
solving the simulation after each adjustment.
In cert ain cases you might need to animate the
vector field parameters to keep objects within
the field.
Cha nging Del egate Or i entation
and Speed
Yo u c a n u s e t h e Orientation behavior (page
2–1214) to change the dir ection in which a delegate
move s, and the Speed Vary behavior (page 2–1222)
to vary delegates’ speed or make them stop moving
altogether.
After setting up a behavior, you must use Behav ior
Assignments (page 2–1200) to assign the b ehavior
to a delegate or team.
Procedures
To use the Orientation behavior:
1.
Select the crowd helper and access the Modify
panel.
2. In the Setup rollout > Behaviors group, click
New. Choose Orientation Behavior from the
pop-up list.
The Orientation Behavior rollout appears
below the Setup rollout.
3. To restrict the heading orientation with respect
to the delegate’s current heading, turn on
Heading group > Relative. To restrict the