Esempio n. 1
0
        public void SetParentBone(PmdBone parent)
        {
            parentBone   = parent;
            parentOffset = parentBone.offset;
            matrix      *= parentOffset;

            parentBone.AddChildBone(this);
        }
Esempio n. 2
0
        public void Set(PmdBone[] pmdBoneArray)
        {
            ikBone       = pmdBoneArray[ikBoneIndex];
            ikTargetBone = pmdBoneArray[ikTargetBoneIndex];

            ikChildBone = new PmdBone[ikChainLength];

            for (int j = 0; j < ikChainLength; j++)
            {
                ikChildBone[j] = pmdBoneArray[ikChildBoneIndex[j]];
            }
        }
Esempio n. 3
0
        public VmdMotion(VmdMotionData aVmdMotionData, PmdBone[] PmdBoneArray)
        {
            boneName = aVmdMotionData.boneName;
            location = aVmdMotionData.location;
            rotation = aVmdMotionData.rotation;

            for (int j = 0; j < PmdBoneArray.Length; j++)
            {
                if (boneName == PmdBoneArray[j].boneName)
                {
                    bone = PmdBoneArray[j];

                    break;
                }
            }
        }
Esempio n. 4
0
 public void AddChildBone(PmdBone child)
 {
     childBoneList.Add(child);
 }