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
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










