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...
p5.js Web Editor Sketches:
🕹️ Flee: editor.p5js.org/codingtrain/s...
🕹️ Pursue: editor.p5js.org/codingtrain/s...
🕹️ Evade: editor.p5js.org/codingtrain/s...
🕹️ Pursue Boucing Ball: editor.p5js.org/codingtrain/s...
🕹️ Pursue Wander: editor.p5js.org/codingtrain/s...
🕹️ Pursue Slider Prediction: editor.p5js.org/codingtrain/s...
🎥 Previous video: • 5.2 Seeking a Target -...
🎥 Next video: • 5.4 Arrive Steering Be...
🎥 All videos: • The Nature of Code 2
References:
🔗 Steering Behaviors for Autonomous Characters: www.red3d.com/cwr/steer/
Videos:
🎥 Inheritance in JavaScript: • 16.17: Inheritance in ...
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/pas...
🚩 Suggest Topics: github.com/CodingTrain/Sugges...
💡 GitHub: github.com/CodingTrain
💬 Discord: thecodingtrain.com/discord
✪ Nebula: go.nebula.tv/codingtrain
💖 Membership: ru-vid.comjoin
🛒 Store: standard.tv/codingtrain
🖋️ Twitter: / thecodingtrain
📸 Instagram: / the.coding.train
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 p5.js: p5js.org
🔗 p5.js Web Editor: editor.p5js.org/
🔗 Processing: processing.org
📄 Code of Conduct: github.com/CodingTrain/Code-o...
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecod...
#forbeginners #javascript #p5js
2 июл 2024