05:355.3 Flee, Pursue, Evade - The Nature of Code
From the creator
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). Code: https://thecodingtrain.com/tracks/the-nature-of-code-2/noc/5-autonomous-agents/3-pursue-and-evade p5.js Web Editor Sketches: 🕹️ Flee: https://editor.p5js.org/codingtrain/sketches/v-VoQtETO 🕹️ Pursue: https://editor.p5js.org/codingtrain/sketches/Lx3PJMq4m 🕹️ Evade: https://editor.p5js.org/codingtrain/sketches/X3ph02Byx 🕹️ Pursue Boucing Ball: https://editor.p5js.org/codingtrain/sketches/itlyDq3ZB 🕹️ Pursue Wander: https://editor.p5js.org/codingtrain/sketches/EEnmY04lt 🕹️ Pursue Slider Prediction: https://editor.p5js.org/codingtrain/sketches/l7MgPpTUB 🎥 Previous video: https://youtu.be/p1Ws1ZhG36g?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM 🎥 Next video: https://youtu.be/OxHJ-o_bbzs?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM 🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM References: 🔗 Steering Behaviors for Autonomous Characters: http://www.red3d.com/cwr/steer/ Videos: 🎥 Inheritance in JavaScript: https://youtu.be/MfxBfRD0FVU Timestamps: 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 What is pursue? 5:54 We need a the target to be a vehicle. 6:42 Let's add pursue now. 9:12 Now we can add evade! 10:03 What if we pursue and evade? 11:09 Let's refine the pursue example a little.
Published 2021-06-24 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





