Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


contactEndEvents

Get the contact end events from the last simulation. The PhysicsShape 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 PhysicsShape.isValid ). The PhysicsShape.Contact 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! It is recommended that you immediately extract what information you need and not directly reference the returned data. See PhysicsEvents.ContactEndEvent.
Read time 1 minuteLast updated 10 days ago

Definition

public ReadOnlySpan<PhysicsEvents.ContactEndEvent> contactEndEvents { get; }