More Steering Behaviors! Flee, Pursue, and Evade
Nature of Code Lesson #5.3
Continuing my quest to explore all the steering behaviors from Craig Reynolds’ 1999 paper, in this video I tackle flee, pursue, and evade (all in JavaScript with p5.js).
Topics
- 0:00 - Hello Again!
- 0:12 - What's my quest?
- 1:08 - 30 seconds on the clock, let's add flee!
- 1:35 - How could we approach this in a smarter way?
- 3:13 - Explain! What is pursue?
- 5:54 - Code! We need a the target to be a vehicle.
- 6:42 - Code! Let's add pursue now.
- 9:12 - Code! Now we can add evade!
- 10:03 - Code! What if we pursue and evade?
- 11:09 - Code! Let's refine the pursue example a little.
- 12:09 - Ideas! What will you make?
Community Contributions
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
- Inheritance in JavaScript - p5.js 16.17 by The Coding Train