assume 0 velocity and acceleration at begining of trajectory.