jointThresholdEvents
Get the joint events from the last simulation. An event is produced by a Joint which exceeds either its _forceThreshold or _torqueThreshold. The PhysicsJoint objects returned should be checked to see if they are valid before accessing as they may have been deleted since this event was produced (see _isValid ). Any change to the world state can invalidate this data so referring to this data afterwards may cause an unavoidable crash! You must immediately extract what information you need and not directly reference the returned data as it will be cleared immediately after being provided. See PhysicsEvents.JointThresholdEvent.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public ReadOnlySpan<PhysicsEvents.JointThresholdEvent> jointThresholdEvents { get; }