コード例 #1
0
 private void ApplyHandMotion_Rotation(HI5_Source source)
 {
     if (HandBones[m_INDEX_Hand] != null)
     {
         HandBones[m_INDEX_Hand].localEulerAngles = HI5_DataTransform.ToUnityEulerAngles(source.GetReceivedRotation(m_INDEX_Hand, HandType));
     }
 }
コード例 #2
0
        private void ApplyFingerMotion(Hand hand, HI5_Source hi5Source, ref Vector3[] hi5EulerAngles)
        {
            for (var i = (ConstIndexHi5Hand + 1); i < ConstIndexNumOfHi5Bones; i++)
            {
                hi5EulerAngles[i] = HI5_DataTransform.ToUnityEulerAngles(hi5Source.GetReceivedRotation(i, hand));
            }

            SetFingerMuscle((int)hand, ref hi5EulerAngles);
        }
コード例 #3
0
 private void ApplyHandMotion_Rotation(Hand hand, HI5_Source hi5Source, ref Vector3[] hi5EulerAngles)
 {
     hi5EulerAngles[ConstIndexHi5Hand] =
         HI5_DataTransform.ToUnityEulerAngles(hi5Source.GetReceivedRotation(ConstIndexHi5Hand, hand));
     SetHandRotation((int)hand, ref hi5EulerAngles);
 }