Wander Steering Behavior
Nature of Code Lesson #5.5
Craig Reynolds’ “Wander” steering behavior is one of my favorites! In this video, I implement my take on it in JavaScript with p5.js and encourage you to invent your own version!
Topics
- 0:00 - Hello, let's wander together.
- 0:25 - Explain! What is wander?
- 0:41 - Code! Creating the wander function.
- 1:01 - Explain! There's more to it than just a random force.
- 4:19 - Code! Refining the wander function.
- 6:23 - Explore! Let's take a closer look at theta.
- 7:38 - Explore! But what about the randomness?
- 10:16 - Code! Adding a path to the vehicle.
- 12:13 - Finalizing the sketch.
- 12:40 - Explain! The displacement method described in the paper.
- 14:07 - Ideas! What could you create?
- 15:13 - Thanks for joining me!
Community Contributions
- my wander behavior by Rob D (Source Code)
- Randomized Paper Airplane Game using Wander Steering Behavior by jaipack17 (Source Code)
- User friendly version using java by Yamen (Source Code)
- 3d sphere projected on 2d by Heinrich Xiao (Source Code)
You can also add your own version! (See how)
Links discussed in this lesson
- Steering Behaviors For Autonomous Characters by Craig Reynolds
Videos discussed in this lesson
- Polar Coordinates - Nature of Code 3.4 by The Coding Train