I am creating an indoor navigation system using Unity and Vuforia for a building on my college campus. I am trying to teleport the camera to a specific place on our map so that their virtual location corelates with the real world location. When I click the teleport button it will appear in the right place for a frame and then back where I started. Moving the world is not an option because we are using Unity NavMesh to generate the path to the destination, and moving the floor would require re-baking the NavMesh on the fly which, to my knowledge, we can't do, especially on the relative low power of a smart phone.
Here is our teleport code
GameObject cam = GameObject.Find("ARCamera");
cam.GetComponent<NavMeshAgent>().enabled = false;
cam.transform.position = sign.transform.position;
cam.GetComponent<NavMeshAgent>().enabled = true;
forgive the formatting this is my first post and I couldn't figure out how to get the syntax highlighting to work