Debug.Log ("moving");
float xPos = getMousePositionX();
float zPos = getMousePositionZ();
Vector3 target = new Vector3(xPos, 0.61f, zPos);
//Instantiate(targetObj, target, Quaternion.identity);
selectedUnit.GetComponent<NavMeshAgent>().SetDestination(target);
This code, for some reason does not cause the nav mesh agent to move but if i place a object in the scene and tell it to move to that objects position it does but it won’t move to a specified Vector3 is there any way to do this?