private void UpdateTransforms()
        {
            ITransformUpdateStrategy transformUpdateStrategy;

            if (m_coordinateSystem == CoordinateSystem.UnityWorld)
            {
                transformUpdateStrategy = new UnityWorldSpaceTransformUpdateStrategy(m_frame);
            }
            else
            {
                var cameraPosition = m_originECEF;// + cam.transform.localPosition;
                transformUpdateStrategy = new ECEFTransformUpdateStrategy(
                    cameraPosition,
                    cameraPosition.normalized.ToSingleVector());
            }

            m_nativePluginRunner.UpdateTransforms(transformUpdateStrategy);
        }
Ejemplo n.º 2
0
        private void UpdateTransforms()
        {
            ITransformUpdateStrategy transformUpdateStrategy;

            if (m_coordinateSystem == CoordinateSystem.UnityWorld)
            {
                transformUpdateStrategy = new UnityWorldSpaceTransformUpdateStrategy(m_frame, m_environmentFlatteningApi.GetCurrentScale());
            }
            else
            {
                var cameraPosition = m_originECEF;// + cam.transform.localPosition;
                transformUpdateStrategy = new ECEFTransformUpdateStrategy(
                    cameraPosition,
                    cameraPosition.normalized.ToSingleVector(),
                    m_environmentFlatteningApi.GetCurrentScale());
            }

            m_nativePluginRunner.UpdateTransforms(transformUpdateStrategy);
            m_geographicApi.UpdateTransforms(transformUpdateStrategy);
        }