Skip to content

PhysicsQueryFilter.ForLayers(ReadOnlySpan) Method

Definition

Namespace: Brine2D.Physics

Creates a filter that hits shapes on any of the given layers (0–63).

public static Brine2D.Physics.PhysicsQueryFilter ForLayers(params System.ReadOnlySpan<int> layers);

Parameters

layers System.ReadOnlySpan<System.Int32>

Returns

PhysicsQueryFilter

Example

PhysicsQueryFilter.ForLayers(0, 2, 5)