> For the complete documentation index, see [llms.txt](https://maxstvps.gitbook.io/documentation-eng/-MbEQLJaN0vXKGxXQmJX/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://maxstvps.gitbook.io/documentation-eng/-MbEQLJaN0vXKGxXQmJX/samples/ar-navigation.md).

# AR Navigation

## AR Navigation

The code to determine the point of departure and arrival to find the navigation path is as follows. If you wish to get a navigation path from the point of user's location, set **arCamera.tranform.position** as a point of departure. This will only be successful if the localization is practiced correctly.

{% code title="MaxstSceneManager.cs" %}

```bash
public void OnClickNavigation()
{
    NavigationController navigationController = vPSStudioController.GetComponent<NavigationController>();
    navigationController.MakePath(arCamera.transform.position, new Vector3(77.975977f, 0, 71.859565f), serverName);
}
```

{% endcode %}

**NavigationController** is collected from VPSStudio GameObject. Through MakePath() from Instance of NavigationController, you will receive the path from the point of departure to the point of arrival.&#x20;

![AR Navigation Sample](/files/-MbC591Svi9KBrzSqQ-h)

{% hint style="info" %}
Enter 3D coordinate value as the point of arrival based on the mesh of VPS Map.

* **arCamera.transform.position** is position of camera in relation to VPS Map's coordinate system.
  {% endhint %}
