public void SetParentBone(PmdBone parent) { parentBone = parent; parentOffset = parentBone.offset; matrix *= parentOffset; parentBone.AddChildBone(this); }
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]]; } }
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; } } }
public void AddChildBone(PmdBone child) { childBoneList.Add(child); }