Analytical Alternative to collision Detection
Objective: The solution is in the attched zip folder. The solution was to alter the csv file so as to stop the motion before collision thus by stopping the curve before it goes negative. The two solutions are we can either make alll the subsequent values to be 0 before it hits negative displacement or stop the curve at that…