Skip to content

PhysicsBodyComponent.OnCollisionEnterWithShape Event

Definition

Namespace: Brine2D.ECS.Components

Fired once when another body begins touching this body, with sub-shape detail. The first SubShape is the sub-shape on \<em>this\</em> body that was hit (null when the primary shape was hit). The second is the sub-shape on the \<em>other\</em> body (null when its primary shape was hit).

public event Action<PhysicsBodyComponent,CollisionContact,SubShape?,SubShape?>? OnCollisionEnterWithShape;

Event Type

System.Action<PhysicsBodyComponent,CollisionContact,SubShape,SubShape>