PhysicsEvents.ContactFilterEvent
An event produced when a pair of PhysicsShape come into contact. This can be used to decide if a contact between the two shapes should be created or not.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public readonly struct PhysicsEvents.ContactFilterEvent
Properties
Property | Description |
|---|---|
| physicsWorld | The physics world both shapes are within. |
| shapeA | One of the shapes involved in the event. |
| shapeB | The other shape involved in the event. |