> For the complete documentation index, see [llms.txt](https://renownedgames.gitbook.io/ai-tree/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://renownedgames.gitbook.io/ai-tree/environment-query-system/useful-objects/environment-query/tests/slope.md).

# Slope

### Description

Picks [items](/ai-tree/environment-query-system/items.md) based on their slope angle. Angle is measured from surface normal. For example if surface is horizontal it's normal is vertical so the angle is equal to zero.

On top of common parameters that are listed above this test following parameters.

#### Parameters

| Name      | Description              |
| --------- | ------------------------ |
| Up Offset | Vertical offset of items |

### Example

In the picture below distance test is used to filter [items](/ai-tree/environment-query-system/items.md) based on their slope angle.

<figure><img src="/files/K2dwicRzyilyUujSCHg5" alt=""><figcaption></figcaption></figure>

Slope on the left has slope angle of 30 degrees. Slope on the right has slope angle of 45 degrees. Center of the map is horizontal.

To achieve this effect set Test Purpose to "Filter Only". Set Filter Type to "Maximum" and then set Max Value to any value between 30 and 45 (in example it's 40).
