Пример #1
0
        protected override void DisableTracking()
        {
            CameraGyro.StartGyro();
            CalibrateCompass(WorldAnchor.transform, Get2DPosition(GetCamera().transform));

            MoveToCamera(WorldAnchor.transform, true);
        }
Пример #2
0
        protected override void DisableTracking()
        {
            CameraManager.EnableCameraTracking = false;
            CameraGyro.StartGyro();
            CalibrateCompass(WorldAnchor.transform);

            MoveToCamera(WorldAnchor.transform, true);
        }
Пример #3
0
        protected override void EnableTracking()
        {
            CameraGyro.StopGyro();
            CameraGyro.ResetGyro();

            PoseDriver.enabled = true;

            m_needsSetAnchor = true;

            //MoveToCamera(WorldAnchor.transform, true);
            ResetWorldHeight();
        }
Пример #4
0
        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);
        }
Пример #5
0
 protected override void EnableTracking()
 {
     CameraManager.EnableCameraTracking = true;
     CameraGyro.StopGyro(reset: true);
     m_needsSetAnchor = true;
 }
Пример #6
0
 protected override void EnableTracking()
 {
     CameraGyro.StopGyro();
     m_needsSetAnchor = true;
 }