LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

Joint.breakTorque

public float breakTorque;

Description

The torque that needs to be applied for this joint to break. To be able to break, a joint must be _Locked_ or _Limited_ on the axis of rotation where the torque is being applied. This means that some joints cannot break, such as an unconstrained Configurable Joint.

The torque might come from collisions with other objects, forces applied with Rigidbody.AddTorque or from other joints. The break torque can be set to Mathf.Infinity to render the joint unbreakable. See Also: Joint.OnJointBreak.