5.7 Path Following (Steering) - Nature of Code

5.7 Path Following (Steering) - Nature of Code

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=rlZYT-uvmGQ



Duration: 15:41
96,327 views
2,401


Continuing the quest to implement all of Craig Reynolds’ steering behaviors in JavaScript with p5.js, in this video I tackle path following! Code: https://thecodingtrain.com/tracks/the-nature-of-code-2/noc/5-autonomous-agents/7-path-following

p5.js Web Editor Sketches:
🕹️ Path Following: https://editor.p5js.org/codingtrain/sketches/dqM054vBV
🕹️ Complex Path: https://editor.p5js.org/codingtrain/sketches/2FFzvxwVt

🎥 Previous video: https://youtu.be/DHPfoqiE4yQ?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:
🎥 Scalar Projection: https://youtu.be/DHPfoqiE4yQ

Timestamps:
0:00 Follow along, I look at path finding!
0:23 Let's create a Path class.
1:18 Now we need a follow force.
1:51 What are the steps to path following?
5:08 Step one: predict future position.
5:40 Modify vectorProjection() to findProjection().
8:12 Use findProjection() and the rest of the steps.
10:30 Refining the example.
11:49 What could you create?
13:28 I forgot to talk about direction!
14:43 No idea what's next but hope to see you there!

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