def _set_torque_func(self, func):
        def _impl(_, relative_angle):
            return func(self, relative_angle)
        
        self._torque_func_callback = cp.cpDampedRotarySpringTorqueFunc(_impl)
        self._dsc.springTorqueFunc = self._torque_func_callback
Set the torque function
dataset/ETHPy150Open estevaofon/angry-birds-python/pymunk-4.0.0/pymunk/constraint.py/DampedRotarySpring._set_torque_func