コード例 #1
0
        /// <summary>
        /// Register a GeographicTransform object to have its position updated by the API.  This object should be
        /// a child of your WRLDMap object. If the object is not a child of your WRLDMap object, this function will
        /// re-parent the object, along with any pre-existing parents.
        /// </summary>
        /// <param name="geographicTransform">The GeographicTransform object to register and start updating.</param>
        public void RegisterGeographicTransform(GeographicTransform geographicTransform)
        {
            if (!ValidateIsChildOfRoot(geographicTransform.transform))
            {
                GetTopmostParentTransform(geographicTransform.transform).SetParent(m_rootTransform);
            }

            m_geographicTransforms.Add(geographicTransform);
        }
コード例 #2
0
 /// <summary>
 /// Unregister a GeographicTransform and stop updating its position.
 /// </summary>
 /// <param name="geographicTransform"> The GeographicTransform object to stop updating.</param>
 public void UnregisterGeographicTransform(GeographicTransform geographicTransform)
 {
     m_geographicTransforms.Remove(geographicTransform);
 }
コード例 #3
0
 /// <summary>
 /// Register a GeographicTransform object to have its position updated by the API.
 /// </summary>
 /// <param name="geographicTransform">The GeographicTransform object to register and start updating.</param>
 public void RegisterGeographicTransform(GeographicTransform geographicTransform)
 {
     m_geographicTransforms.Add(geographicTransform);
 }