![]() | IKasJointEventsListener Interface |
Namespace: KASAPIv2
The IKasJointEventsListener type exposes the following members.
Name | Description | |
---|---|---|
![]() | OnKASJointBreak |
Triggers when a connection on the object is broken due to too strong force applied.
|
class BrokenJointListenerExample : PartModule, IKasJointEventsListener { /// <inheritdoc/> public virtual void OnKASJointBreak(GameObject hostObj, float breakForce) { if (hostObj.name == "MyFakeRB") { DebugEx.Warning("Joint on MyFakeRB is broken with force {0}", breakForce); Destroy(hostObj); } } }