This entry is part of 9 in the series Steering Behaviors

Next in the series on Steering Behaviors is arrival. As always, we will be using the Vehicle.as class. It is based on Craig Reynolds’ article, Steering Behaviors For Autonomous Characters.

The Arrival Behavior. Click to see it.

The arrival behavior is almost exactly like seeking, except it has a little, but useful, twist. When the vehicle is seeking a target and it reaches the target, its velocity is greater than 0 and it continues to move, thus overshooting the target. So the vehicle turns around and does it again. This results in an oscillation More >