Ejemplo n.º 1
0
 /// <summary>
 /// Update OrientationCube and DirectionIndicator
 /// </summary>
 void UpdateOrientationObjects()
 {
     m_OrientationCube.UpdateOrientation(body, m_Target);
     if (m_DirectionIndicator)
     {
         m_DirectionIndicator.MatchOrientation(m_OrientationCube.transform);
     }
 }
Ejemplo n.º 2
0
 //Update OrientationCube and DirectionIndicator
 void UpdateOrientationObjects()
 {
     m_WorldDirToWalk = target.position - hips.position;
     m_OrientationCube.UpdateOrientation(hips, target);
     if (m_DirectionIndicator)
     {
         m_DirectionIndicator.MatchOrientation(m_OrientationCube.transform);
     }
 }