# operator ~(PhysicsMask)

> Bitwise COMPLEMENT operator for PhysicsMask.

## Definition

* **Type:** Operator
* **Namespace:** [Unity.U2D.Physics](/engine/6000.5/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public static PhysicsMask operator ~(PhysicsMask bitMask)
```

### Parameters

**** (\[PhysicsMask]\(/engine/6000.5/script-reference/unity/u2d/physics/physicsmask)): The PhysicsMask to perform the operation with.

### Returns

| Type                                                                            | Description                                 |
| ------------------------------------------------------------------------------- | ------------------------------------------- |
| [PhysicsMask](/engine/6000.5/script-reference/unity/u2d/physics/physicsmask.md) | The bit-wise operation using both BitMasks. |
