Suppose a toy car is simulated in VPython to move to the left at a constant velocity. At some point in time, the car comes into contact with a rubber band, which slingshots the car to the right.
brylie.oke649@topper.wku.edu 9K89-A4-62-41-AA7D-57946
If you wanted to create an "if-then" statement that only applies when the car is moving towards the left, how would you do this? (Assume that rubberband.pos.x > 0 at all times.