[2305.00092] Improving Gradient Computation for Differentiable Physics Simulation with Contacts