5.7 Path Following (Steering) - Nature of Code @TheCodingTrain
5.7 Path Following (Steering) - Nature of Code  @TheCodingTrain
Uploaded October 2021 | Updated September 2026, 1 week ago
Continuing the quest to implement all of Craig Reynolds’ steering behaviors in JavaScript with p5.js, in this video I tackle path following! Code: thecodingtrain.com/tracks/the-nature-of-code-2/noc/5-autonomous-agents/7-path-following

p5.js Web Editor Sketches:
πŸ•ΉοΈ Path Following: editor.p5js.org/codingtrain/sketches/dqM054vBV
πŸ•ΉοΈ Complex Path: editor.p5js.org/codingtrain/sketches/2FFzvxwVt

πŸŽ₯ Previous video: youtu.be/DHPfoqiE4yQ?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
πŸŽ₯ All videos: youtube.com/playlist?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM

References:
πŸ”— Steering Behaviors for Autonomous Characters: red3d.com/cwr/steer

Videos:
πŸŽ₯ Scalar Projection: 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: 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
5.7 Path Following (Steering) - Nature of CodeCoding Challenge 188: Voice ChatbotStickers!4.1: Particle System Simulation - The Nature of CodeCoding Train 2022 in Review, Plans for 2023Why Language Models Surprise YouCoding Challenge #97: The Book of Pi - Part 1Coding Challenge #140: Pi Approximation with Leibniz SeriesCoding Challenge 165: Slide Puzzle5.5 Wander Steering Behavior - The Nature of CodeCoding Train Stickers 2023 Last Call!More Nature of Code Chapter 2, + 3D Fractals?
The Coding Train |

5.7 Path Following (Steering) - Nature of Code

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER