AR Navigation

Description of AR Navigation using MAXSTVPS

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.

Last updated