| Parameter | Description |
|---|---|
| normal | The normal used to calculate an angle. |
bool
Returns true when normal is excluded by the filter and false if otherwise.
Checks if the angle of normal is within the normal angle range to be filtered.
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 is set to true and the angle is outside the normal angle range defined by ContactFilter2D.minNormalAngle and ContactFilter2D.maxNormalAngle. This indicates the angle is filtered which means it should be excluded. IsFilteringNormalAngle returns false if otherwise.
Note:: Setting ContactFilter2D.useOutsideNormalAngle to true inverts the function behavior and it returns opposite results.
Additional resources: ContactFilter2D.useNormalAngle, ContactFilter2D.maxNormalAngle
| Parameter | Description |
|---|---|
| angle | The angle used for comparison in the filter. |
bool
Returns true when angle is excluded by the filter and false if otherwise.
Checks if the angle is within the normal angle range to be filtered.
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 is set to true and the angle is outside the normal angle range defined by ContactFilter2D.minNormalAngle and ContactFilter2D.maxNormalAngle. This indicates the angle is filtered which means it should be excluded. IsFilteringNormalAngle returns false if otherwise.
Note:: Setting ContactFilter2D.useOutsideNormalAngle to true inverts the function behavior and it returns opposite results.
Additional resources: ContactFilter2D.useNormalAngle, ContactFilter2D.maxNormalAngle