Documentation (ENG)
  • Setup Guide
  • Getting Started
    • Prerequisites
    • VPS Map Coverage
  • 3D Object
    • 3D Object Placement
  • Unity Scene
    • Unity Scene Components
  • Scene Manager
    • SceneManager Description
  • Samples
    • AR Navigation
    • Placement by Raycast
  • NReal
    • Nreal Support
  • API Reference
Powered by GitBook
On this page
Export as PDF
  1. Samples

AR Navigation

Description of AR Navigation using MAXSTVPS

PreviousSceneManager DescriptionNextPlacement by Raycast

Last updated 3 years ago

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.

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

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.

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.

AR Navigation Sample