コード例 #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);
     }
 }
コード例 #2
0
ファイル: WalkerAgent.cs プロジェクト: nexzanavod/ml-agents
 //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);
     }
 }