Use Momentum.v2.AngularMotor and getHoldPositionDamping()/setHoldPositionDamping() for position-holding damping. See Migrating from the deprecated v1 API.
Use Momentum.v2.LinearMotor and getHoldPositionDamping()/setHoldPositionDamping() for position-holding damping. See Migrating from the deprecated v1 API.
In Momentum.v2, use getAttenuation(). Its result is attenuation n (dimensionless integration steps) instead of damping time tau in seconds. Convert using n = tau / h, or tau = n * h, where h is the active simulation timestep in seconds. Review calculations using the returned value before migrating. See Migrating from the deprecated v1 API.
In Momentum.v2, convert the damping time with Momentum.v2.convertDampingTimeToAttenuation() and pass the result to setAttenuation(). See Migrating from the deprecated v1 API.