9:54:075.7 Path Following (Steering) - Nature of Code
From the creator
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.co
Published 2021-10-16 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





