chickadee » physics » create-damped-rotary-spring

create-damped-rotary-spring body-a body-b anchor-a anchor-b rest-angle stiffness dampingprocedure

Like a damped spring, but works in an angular fashion. rest-angle is the relative angle in radians that the bodies want to have, stiffness and damping work basically the same as on a damped spring.