Physics Simulation of Curvilinear and Rectilinear Motions