# Approach

The **Approach** condition allows to set up a zone around interactive objects to launch actions when the user enters it.

{% embed url="<https://youtu.be/faEy2mU128Y?si=PTlmUnc4rMw48P6Q>" %}

The Approach condition includes the following parameters:

* **Approach** **Mode:** if you select `ENTER`, it means the user has to be close from the object(s), at least at the specified minimum distance.\
  If you select `EXIT`, it means user needs to be far from the object(s), at a bigger distance than the minimum distance set.
* **Distance:** distance, in meters, between the user and the object(s). Objects should be either at this distance or below (to validate`ENTER`) or be at a bigger distance (to validate `EXIT`).

{% hint style="info" %}
*Note that the condition uses the Proximity colliders of the given IOs and you can choose if the distance is calculated from the center of each collider or from the edges* (using the checkbox below the distance).
{% endhint %}

* **Objects in proximity:** objects ([IO](/adding-interactivity/interactive-objects.md)) that the user needs to approach. You can add more than one, then if `Require All` is checked, all the specified objects in this list are required to validate the condition. If `Require All` is not checked, only one of the objects is requires for validating the condition.
* **Minimum duration required:** check details [here](/adding-interactivity/interactions/conditions/duration-parameter.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://unity.zoeimmersive.com/adding-interactivity/interactions/conditions/approach.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
