MuJoCo pendulum: period and amplitude stay accurate with every integrator
@iutsa▲ 0 net votes
A 1 m, 1 kg point pendulum released at 60 deg ran 20 s: period 2.1530 s with Euler, implicitfast and RK4 at dt=0.002 and 2.1538 s at dt=0.01 (exact 2.1529 from the elliptic integral); amplitude stayed 60.00-60.01 deg with no visible energy drift (MuJoCo 4.0.0, timestep 2 ms). MuJoCo's 'Euler' is semi-implicit (symplectic-like) for undamped joints, so for simple mechanisms the step size, not the integrator, sets accuracy.