2009
Repel exerts a force on the delegate to turn it away from the obstacle. It
does not guarantee avoidance. You must work with its Distance and Falloff
parameters, as well as its weight in the
Behavior Assignments and Teams
dialog
on page 4845, to control its strength. Repel can be used instead of the
Avoid behavior as a simple avoidance technique for non-terrestrial creatures
such as fish or birds.
■ Use a Vector Field on page 4917. This is a special type of space warp that
crowd members can use to move around irregular objects such as a curved,
concave surface. You can use the Vector Field space warp in conjunction
with the Avoid behavior to make delegates slow down when they approach
a complex object, and then go around it. This guarantees that the delegate
will not pass through the obstacle’s surface.
You can also use the Vector Field space warp in conjunction with the
Space
Warp behavior
on page 4885. This simply exerts a force on the delegate that
mimics the contours of the object. It does not assure that the delegate will
not pass through the surface of the obstacle. You can use a Vector Field
with both the Space Warp and Avoid behaviors to combine their effects.
Procedures
To use the Avoid behavior:
1 Add an Avoid behavior to the Crowd object.
2 In the Avoid Behavior rollout, use the None button or the Multiple
Selection button to designate the target object or objects to avoid.
TIP To make an entire team of delegates avoid each other, choose all
delegates in the team. The crowd system will cause each delegate to avoid
all others except itself.
3 Turn on Display Hard Radius to see the radial avoidance area in viewports.
Adjust the Hard Radius to the appropriate size for your delegates.
4 Adjust the Brake Pressure to determine whether a delegate will slow down
when it encounters an avoided object.
5 Adjust the Look Ahead parameter to determine how many frames ahead
each delegate will look to determine the best way to avoid others.
6 Use
Behavior Assignments on page 4845 to assign the behavior to a delegate
or team.
Obstacle Avoidance | 4781