Contents
What does it mean to follow a path in steering behavior?
This tutorial covers the path following steering behavior, which allows characters to follow a predefined path made of points and lines. Note: Although this tutorial is written using AS3 and Flash, you should be able to use the same techniques and concepts in almost any game development environment.
How is path following behavior similar to pursuit behavior?
The path following steering force is extremely similar to the pursuit behavior, where the character constantly adjusts its direction to catch the target. The difference lies in how the character seeks an immovable target, which is ignored in favor of another one as soon as the character gets too close.
How can I change my path following behavior?
Click the “Force” button to show forces. Click the “+” and “-” buttons to dynamically adjust the radius size. The greater the radius, the wider the route and the bigger the distance the characters will keep from the points when turning. The value of the radius can be tweaked to produce different following patterns.
How is path following used in game development?
Path following is a frequent problem in game development. This tutorial covers the path following steering behavior, which allows characters to follow a predefined path made of points and lines.
How is seek behavior used in corrective steering?
Corrective steering is obtained using seek behavior on a target point further down the path. The vehicle’s position is mapped into a distance along the path, that distance is incremented by speed-proportional amount, and converted back to a target point on the path (white circle).
Is the leader following behavior a steering force?
The leader following behavior is a composition of other steering forces, all arranged to make a group of characters follow a specific character (the leader). A naive approach would use seek or pursuit to create a follow pattern, but the result is not good enough.