Skip to main content

JointBreakDetector

A class in Root.Township, the global namespace.

Raises an event when a Unity joint on this object breaks. Add it next to the joint to listen from elsewhere.

Constructors​

MemberWhat it is
JointBreakDetector()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Events​

MemberWhat it is
event JointBreakHandler JointBreakRaised with this component and the break force when a joint breaks.

Methods​

1 private and internal method
MemberWhat it is
private void OnJointBreak(float force)Unity callback that raises JointBreak.

Used in​

Members of other types that take, return or hold a JointBreakDetector: