PhysicsLayerRegistry.ForLayers(ReadOnlySpan) Method
Definition¶
Namespace: Brine2D.Physics
Returns a PhysicsQueryFilter that hits shapes on any of the given named layers.
public Brine2D.Physics.PhysicsQueryFilter ForLayers(params System.ReadOnlySpan<string> names);
Parameters¶
names System.ReadOnlySpan<System.String>
Returns¶
Exceptions¶
System.Collections.Generic.KeyNotFoundException
Thrown when any name has not been registered.