Documentation

Unity Engine

Unity Engine

contactFilterCallbacks

Controls whether this shape produces contact filter callbacks. A contact filter callback allows direct control over whether a contact will be created between a pair of shapes. This applies to both triggers and non-triggers but only with to Dynamic bodies These are relatively expensive so disabling them can provide a significant performance benefit. A contact filter callback will call the PhysicsShape.callbackTarget for both shapes involved if they implement PhysicsCallbacks.IContactFilterCallback.
Read time 1 minuteLast updated 2 months ago

Definition

public bool contactFilterCallbacks { get; set; }