- Home /
How can you detect when a joint has broken?
While I know it's possible to configure joints I haven't seen anything relating to joints being tested to see if they've broken or not. Is it possible to test the amount of force currently on a joint?
Answer by Owen-Reynolds · Dec 17, 2012 at 03:45 PM
Look in the MonoBehavior docs in http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.OnJointBreak.html
I have never used it, but it looks just like OnCollisionEnter, etc... .
How to get the current force? Beats me.
Doh, I knew the answer would be hidden somewhere in the docs... thanks. Looking at the actual joint commands it wasn't obvious.
Answer by MESSI007 · May 08, 2017 at 03:12 PM
OnJointBreak Called when a joint attached to the same game object broke. OnJointBreak2D Called when a Joint2D attached to the same game object breaks.
Your answer
![](https://koobas.hobune.stream/wayback/20220613085545im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Physics (Joint) different in build to in editor 0 Answers
When a configurable joint object is a fixed joint of another object 0 Answers
Configure configurableJoint to act as the disctontinued driveJoint 0 Answers
Questions about physics based combat (animation + collision, hinge joints++) 0 Answers
Problem with joints 2 Answers