Called when a joint attached to the same game object broke.
function OnJointBreak(breakForce : float) { Debug.Log("A joint has just been broken!, force: " + breakForce); }
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void OnJointBreak(float breakForce) { Debug.Log("A joint has just been broken!, force: " + breakForce); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def OnJointBreak(breakForce as float) as void: Debug.Log(('A joint has just been broken!, force: ' + breakForce))