BoneWeight GetBoneWeight(mstudioboneweight_t mBoneWeight) { BoneWeight boneWeight = new BoneWeight(); boneWeight.boneIndex0 = mBoneWeight.bone[0]; boneWeight.boneIndex1 = mBoneWeight.bone[1]; boneWeight.boneIndex2 = mBoneWeight.bone[2]; boneWeight.weight0 = mBoneWeight.weight[0]; boneWeight.weight1 = mBoneWeight.weight[1]; boneWeight.weight2 = mBoneWeight.weight[2]; return(boneWeight); }
private static BoneWeight GetBoneWeight(mstudioboneweight_t mBoneWeight) { BoneWeight boneWeight = new BoneWeight(); boneWeight.boneIndex0 = mBoneWeight.bone[0]; boneWeight.boneIndex1 = mBoneWeight.bone[1]; boneWeight.boneIndex2 = mBoneWeight.bone[2]; boneWeight.weight0 = mBoneWeight.weight[0]; boneWeight.weight1 = mBoneWeight.weight[1]; boneWeight.weight2 = mBoneWeight.weight[2]; return boneWeight; }