Skip to content

PhysicsWorld.IgnoreCollision(PhysicsBodyComponent, PhysicsBodyComponent) Method

Definition

Namespace: Brine2D.Physics

Suppresses all collision and contact events between a and b until RestoreCollision(PhysicsBodyComponent, PhysicsBodyComponent) is called. If either body is not yet live, the suppression is deferred and applied automatically the next time both bodies are created. Safe to call multiple times for the same pair.

public void IgnoreCollision(Brine2D.ECS.Components.PhysicsBodyComponent a, Brine2D.ECS.Components.PhysicsBodyComponent b);

Parameters

a PhysicsBodyComponent

b PhysicsBodyComponent