
5.3 Flee, Pursue, Evade - The Nature of Code
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.
12:09 What will you make?
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
๐ Website: http://thecodingtrain.com/
๐พ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
๐ฉ Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
๐ก GitHub: https://github.com/CodingTrain
๐ฌ Discord: https://thecodingtrain.com/discord
โช Nebula: https://go.nebula.tv/codingtrain
๐ Membership: http://youtube.com/thecodingtrain/join
๐ Store: https://standard.tv/codingtrain
๐๏ธ Twitter: https://twitter.com/thecodingtrain
๐ธ Instagram: https://www.instagram.com/the.coding.train/
๐ฅ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
๐ฅ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
๐ p5.js: https://p5js.org
๐ p5.js Web Editor: https://editor.p5js.org/
๐ Processing: https://processing.org
๐ Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new
#forbeginners #javascript #p5js