In this influential paper, Reynolds introduces simple, and yet essential steering behaviors for virtual agents. Extending, combining and refining these elementary behaviors lead to a vast collection of path planning and smart navigation methods for virtual characters.
This is an implementation of some of the steering behaviors mentioned in the original paper by Reynolds. You can use them as a basis for more complex behaviors you require in your projects. You can view some of those behaviors in action in this live demo.
Install via bower: bower install rharel/js-steering-behaviors
The dist/
directory contains the library file (steering_behaviors.js
).
Include in the browser using <script src="path/to/steering_behaviors.js"></script>
A preface to understanding the settings as well as the inner workings of the behaviors is of course to treat the original paper as your manual.
Learning by example is also a possibility by either inspecting the visual tests under test/visual/ or to look at the source of the live demo.
Of course, all important objects in the source files themselves are also annotated with jsdoc-style comments.
This software is licensed under the MIT License. See the license file for more information.