文档

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.
阅读时间1 分钟最后更新于 1 个月前

Definition

public bool contactFilterCallbacks { readonly get; set; }