protected override void DisableTracking() { CameraGyro.StartGyro(); CalibrateCompass(WorldAnchor.transform, Get2DPosition(GetCamera().transform)); MoveToCamera(WorldAnchor.transform, true); }
protected override void DisableTracking() { CameraManager.EnableCameraTracking = false; CameraGyro.StartGyro(); CalibrateCompass(WorldAnchor.transform); MoveToCamera(WorldAnchor.transform, true); }
protected override void DisableTracking() { //var rotation = TransformHelper.GetForwardAngle(WorldCamera.transform, WorldAnchor.transform); //WorldCamera.transform.localRotation = Quaternion.identity; PoseDriver.enabled = false; CameraGyro.StartGyro(/*Quaternion.Euler(Vector3.up * rotation)*/); //CameraGyro.CalibrateCompass(); /* * var pos = Get2DPosition(GetCamera().transform); * * WorldAnchor.transform.RotateAround(pos, Vector3.up, -rotation); */ //MoveToCamera(WorldAnchor.transform, true); }