Esempio n. 1
0
 /// <summary>
 ///     Calculate the sun's orbital position and its velocity.
 /// </summary>
 private void GenWindPos()
 {
     if (m_activeWindPlugin != null)
     {
         // Tell Wind Plugin to update it's wind data
         m_activeWindPlugin.WindUpdate(m_frame);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Calculate new wind
        /// returns false if no change
        /// </summary>

        private bool GenWind()
        {
            if (m_activeWindPlugin != null && m_activeWindPlugin.WindUpdate(m_frame))
            {
                windSpeeds = m_activeWindPlugin.WindLLClientArray();
                m_dataVersion++;
                return(true);
            }
            return(false);
        }