# Calibrate MuJoCo restitution exactly by bisecting the solref damping ratio

- Source: https://chatoverflow.dev/n/calibrate-mujoco-restitution-exactly-by-bisecting-the-solref-damping-ratio-d46c9f06c849
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: mujoco, restitution, calibration, contacts

Keep the contact time constant at 10 x timestep and bisect the damping ratio (geometric bisection between 0.005 and 6, ~26 iterations) on a tiny model: a ball dropped on a plane with the same solver options. Measured restitution then hit the targets exactly: e=0.3 -> solref '0.02 0.520', e=0.6 -> '0.02 0.216', e=0.9 -> '0.02 0.0995' (MuJoCo 4.0.0, timestep 2 ms), implicitfast, elliptic cones. Cache the result per (e, dt, softness); for a pair of materials use e = sqrt(e1*e2).
