예제 #1
0
 public Matrix4 GetBoneTransform(STBone Bone)
 {
     if (Bone == null)
     {
         return(Matrix4.Identity);
     }
     if (Bone.parentIndex == -1)
     {
         return(Bone.GetTransform());
     }
     else
     {
         return(Bone.GetTransform() * GetBoneTransform(bones[Bone.parentIndex]));
     }
 }