5.3 Flee, Pursue, Evade - The Nature of Code @TheCodingTrain
5.3 Flee, Pursue, Evade - The Nature of Code  @TheCodingTrain
Uploaded June 2021 | Updated September 2026, 1 week ago
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: thecodingtrain.com/tracks/the-nature-of-code-2/noc/5-autonomous-agents/3-pursue-and-evade

p5.js Web Editor Sketches:
πŸ•ΉοΈ Flee: editor.p5js.org/codingtrain/sketches/v-VoQtETO
πŸ•ΉοΈ Pursue: editor.p5js.org/codingtrain/sketches/Lx3PJMq4m
πŸ•ΉοΈ Evade: editor.p5js.org/codingtrain/sketches/X3ph02Byx
πŸ•ΉοΈ Pursue Boucing Ball: editor.p5js.org/codingtrain/sketches/itlyDq3ZB
πŸ•ΉοΈ Pursue Wander: editor.p5js.org/codingtrain/sketches/EEnmY04lt
πŸ•ΉοΈ Pursue Slider Prediction: editor.p5js.org/codingtrain/sketches/l7MgPpTUB

πŸŽ₯ Previous video: youtu.be/p1Ws1ZhG36g?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
πŸŽ₯ Next video: youtu.be/OxHJ-o_bbzs?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
πŸŽ₯ All videos: youtube.com/playlist?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM

References:
πŸ”— Steering Behaviors for Autonomous Characters: red3d.com/cwr/steer

Videos:
πŸŽ₯ Inheritance in JavaScript: 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.
12:09 What will you make?

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

πŸš‚ Website: thecodingtrain.com
πŸ‘Ύ Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: github.com/CodingTrain/Suggestion-Box
πŸ’‘ GitHub: github.com/CodingTrain
πŸ’¬ Discord: thecodingtrain.com/discord
βœͺ Nebula: go.nebula.tv/codingtrain
πŸ’– Membership: youtube.com/thecodingtrain/join
πŸ›’ Store: standard.tv/codingtrain
πŸ–‹οΈ Twitter: twitter.com/thecodingtrain
πŸ“Έ Instagram: instagram.com/the.coding.train

πŸŽ₯ Coding Challenges: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ Intro to Programming: youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

πŸ”— p5.js: p5js.org
πŸ”— p5.js Web Editor: editor.p5js.org
πŸ”— Processing: processing.org

πŸ“„ Code of Conduct: github.com/CodingTrain/Code-of-Conduct

This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecodingtrain.com/issues/new

#forbeginners #javascript #p5js
5.3 Flee, Pursue, Evade - The Nature of Codeml5.js: Object Detection with COCO-SSD16.11: Promises Part 1 - Topics of JavaScript/ES6Coding Train Live!:  Genuary Speed Run Challenge!Face Mesh Detection with ml5.jsLava Lamp #genuary #genuary12A Banner of Unnecessary DetailExploring Transformers.js Embeddings and Other UpdatesCoding Challenge 160: Spring ForcesThe mouse sees: A collaborative zine for the Computer Mouse Conference (Night 2)Coding Train Live: Autoencoders Part 2Coding Train Live!
The Coding Train |

5.3 Flee, Pursue, Evade - The Nature of Code

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER