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 EnableTracking() { CameraGyro.StopGyro(); CameraGyro.ResetGyro(); PoseDriver.enabled = true; m_needsSetAnchor = true; //MoveToCamera(WorldAnchor.transform, true); ResetWorldHeight(); }
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); }
protected override void EnableTracking() { CameraManager.EnableCameraTracking = true; CameraGyro.StopGyro(reset: true); m_needsSetAnchor = true; }
protected override void EnableTracking() { CameraGyro.StopGyro(); m_needsSetAnchor = true; }