# PhysicsMask

> Create a PhysicsMask by specifying multiple bits to set (1).

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

## PhysicsMask(int\[])

Create a PhysicsMask by specifying multiple bits to set (1).

```csharp
public PhysicsMask(params int[] bitIndicies)
```

### Parameters

**** (\[int\[]]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The indices of the bits to set in the mask. An index must be in the range \[0, 63].

## PhysicsMask(LayerMask)

Create a PhysicsMask from a LayerMask. A [LayerMask](/engine/6000.3/script-reference/unityengine/layermask.md) is only 32-bits wide so the PhysicsMask will have the upper 32-bits set to zero.

```csharp
public PhysicsMask(LayerMask layerMask)
```

### Parameters

**** (\[LayerMask]\(/engine/6000.3/script-reference/unityengine/layermask)): The LayerMask to use.
