Say I want to create a line between two points and want to show the line taking every step from the first point to the second point inside my plot. How would I go about creating this? For context, I am working on a robotics assignment that requires me to do this with a bug algorithm. I don't want a solution for the algorithm as it would take the fun out of it. Rather, I am just looking for a simple way of showing every step the line takes to join the two points. I currently have no idea what kind of code that would involve but I heard through the grapevine to use a stepsize.
Thank you in advance for any help!
Best Answer