Esempio n. 1
0
 void UpdateHeading(float deltaTime, Vector3 up)
 {
     // We let the first rig calculate the heading
     if (mOrbitals[0] != null)
     {
         mOrbitals[0].UpdateHeading(deltaTime, up);
         m_XAxis = mOrbitals[0].m_XAxis;
     }
     // Then push it to the other rigs
     for (int i = 1; i < mOrbitals.Length; ++i)
     {
         if (mOrbitals[i] != null)
         {
             mOrbitals[i].m_XAxis = m_XAxis;
         }
     }
 }