A physics engine based on the Euler-Lagrange equations.