I am trying to set up a program where I have a car and I want to make it move wherever the user decides. For now, I only have text printing out telling me what is happening to make sure I can do the movement.
For now, I am using rectangular coordinates and I want to move the robot to a destination. First, it turns to its destination, then moves forward till it hits the destination. Is there a common algorithm for deciding how to turn turn in rectangular coordinates? Currently, I just have a lot of if statements and I would think this is a common enough problem.