Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
        private void UpdateTransforms()
        {
            m_buildingsApi.AddNewHighlights();

            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);
            m_geographicApi.UpdateTransforms(transformUpdateStrategy);
        }
Ejemplo n.º 3
0
 private void UpdateTransforms()
 {
     m_transformUpdateStrategy.UpdateStrategy(m_originECEF, m_environmentFlatteningApi.GetCurrentScale());
     m_nativePluginRunner.UpdateTransforms(m_transformUpdateStrategy);
     m_geographicApi.UpdateTransforms(m_transformUpdateStrategy);
 }