One follower, multiple line segments.
- Renamed the point-memory array trail instead of path to avoid confusion.
- Moved a bunch of the logic from
PathFollower
intoPath
. The path when given a point returns its closest location. - Implemented path radius check.
- Implemented a bunch of path bounds checking that I'm not going to use yet.
Video Info
- coding train link: https://thecodingtrain.com/tracks/the-nature-of-code-2/noc/5-autonomous-agents/7-path-following
- video in playlist: https://www.youtube.com/watch?v=rlZYT-uvmGQ&list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM&index=44
- code: https://editor.p5js.org/codingtrain/sketches/dqM054vBV
Instructions
- "l" to start or stop the the running sketch
- "a" to toggle the rendering of "the apparatus"