In AR project how to move Navmesh agent without getting affected by the AR camera position?
HI, I am working on Vuforia AR project, the game has objects moving on navmesh. I am updating navmesh using NavMeshComponents - https://github.com/Unity-Technologies/NavMeshComponents But when the camera moves around the position of those objects are affecting.
How do I move the objects on the AR ImageTarget without its position affecting its position from the AR camera?
Answer by Fuongen · Jan 21, 2021 at 02:24 AM
For those who are still looking for an answer for this problem;
Click on AR Camera which is on your scene, then there is a script attached to the AR Camera which is "Vuforia Behaviour" script. It has "World Center Mode" option and "DEVICE" is selected as default. You need to change it from "DEVICE" to "SPECIFIC_TARGET" and as a target you should choose your "Image Target". After that, your Nav Mesh Agent should be working very well in AR as it works with normal camera.
Answer by selvapandigamedev95 · Oct 14, 2019 at 04:07 AM
Hi sandeepraj, Do you have any solution for this????Can you please share your ideas..@sandeepraj