Joint:getTorque
EditReturns the magnitude of the torque used to satisfy the Joint's constraint during the last physics update, in newton meters.
This is useful for breakable joints. Use Joint:destroy to break the joint if its torque goes above a threshold.
torque = Joint:getTorque()Arguments
None
Returns
| Name | Type | Description |
| torque | number | The magnitude of the torque used to satisfy the Joint's constraint. |
Notes
This does not include the motor force of a HingeJoint, see HingeJoint:getMotorForce.