# IsFilteringNormalAngle

> Checks if the angle of normal is within the normal angle range to be filtered.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.Physics2DModule

## IsFilteringNormalAngle(Vector2)

Checks if the angle of `normal` is within the normal angle range to be filtered.

```csharp
public bool IsFilteringNormalAngle(Vector2 normal)
```

### Parameters

**** (\[Vector2]\(/engine/6000.6/script-reference/unityengine/vector2)): The normal used to calculate an angle.

### Returns

| Type                                                          | Description                                                                  |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true when `normal` is excluded by the filter and false if otherwise. |

### Remarks

Filtering is defined as including or excluding objects based upon a specific condition.  Normal angle filtering checks an angle and includes it when it is within the normal angle range and excludes it if otherwise. IsFilteringNormalAngle returns true when [ContactFilter2D.useNormalAngle](/engine/6000.6/script-reference/unityengine/contactfilter2d/usenormalangle.md) is set to true and the angle is outside the normal angle range defined by [ContactFilter2D.minNormalAngle](/engine/6000.6/script-reference/unityengine/contactfilter2d/minnormalangle.md) and [ContactFilter2D.maxNormalAngle](/engine/6000.6/script-reference/unityengine/contactfilter2d/maxnormalangle.md). This indicates the angle is filtered which means it should be excluded. IsFilteringNormalAngle returns false if otherwise. **Note:**: Setting [ContactFilter2D.useOutsideNormalAngle](/engine/6000.6/script-reference/unityengine/contactfilter2d/useoutsidenormalangle.md) to true inverts the function behavior and it returns opposite results. Additional Resources: [ContactFilter2D.useNormalAngle](/engine/6000.6/script-reference/unityengine/contactfilter2d/usenormalangle.md), ::ref:minNormalAngle & [ContactFilter2D.maxNormalAngle](/engine/6000.6/script-reference/unityengine/contactfilter2d/maxnormalangle.md).

## IsFilteringNormalAngle(float)

Checks if the `angle` is within the normal angle range to be filtered.

```csharp
public bool IsFilteringNormalAngle(float angle)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The angle used for comparison in the filter.

### Returns

| Type                                                          | Description                                                                 |
| ------------------------------------------------------------- | --------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true when `angle` is excluded by the filter and false if otherwise. |

### Remarks

Filtering is defined as including or excluding objects based upon a specific condition.  Normal angle filtering checks an angle and includes it when it is within the normal angle range and excludes it if otherwise. IsFilteringNormalAngle returns true when [ContactFilter2D.useNormalAngle](/engine/6000.6/script-reference/unityengine/contactfilter2d/usenormalangle.md) is set to true and the angle is outside the normal angle range defined by [ContactFilter2D.minNormalAngle](/engine/6000.6/script-reference/unityengine/contactfilter2d/minnormalangle.md) and [ContactFilter2D.maxNormalAngle](/engine/6000.6/script-reference/unityengine/contactfilter2d/maxnormalangle.md). This indicates the angle is filtered which means it should be excluded. IsFilteringNormalAngle returns false if otherwise. **Note:**: Setting [ContactFilter2D.useOutsideNormalAngle](/engine/6000.6/script-reference/unityengine/contactfilter2d/useoutsidenormalangle.md) to true inverts the function behavior and it returns opposite results. Additional Resources: [ContactFilter2D.useNormalAngle](/engine/6000.6/script-reference/unityengine/contactfilter2d/usenormalangle.md), ::ref:minNormalAngle & [ContactFilter2D.maxNormalAngle](/engine/6000.6/script-reference/unityengine/contactfilter2d/maxnormalangle.md).
