I don’t understand why we would go through the trouble of using the distance function and resetting the start location.
My code looks like this, would this cause bugs?
Float DistanceMoved = CurrentLocation.X - StartLocation.X;
if ( DistanceMoved > StopPoint || DistanceMoved < 0)
{
Velocity = -Velocity;
}