public M2AnimationBone(M2File file, ref M2Bone bone, BinaryReader reader) { Bone = bone; mPivot = Matrix.Translation(bone.pivot); mInvPivot = Matrix.Translation(-bone.pivot); mTranslation = new M2Vector3AnimationBlock(file, bone.translation, reader); mRotation = new M2Quaternion16AnimationBlock(file, bone.rotation, reader, Quaternion.Identity); mScaling = new M2Vector3AnimationBlock(file, bone.scaling, reader, Vector3.One); }
public M2AnimationBone(M2File file, ref M2Bone bone, BinaryReader reader) { mBone = bone; IsBillboarded = (bone.flags & 0x08) != 0; // Some billboards have 0x40 for cylindrical? IsTransformed = (bone.flags & 0x200) != 0; mPivot = Matrix.Translation(bone.pivot); mInvPivot = Matrix.Translation(-bone.pivot); mTranslation = new M2Vector3AnimationBlock(file, bone.translation, reader); mRotation = new M2Quaternion16AnimationBlock(file, bone.rotation, reader, Quaternion.Identity); mScaling = new M2Vector3AnimationBlock(file, bone.scaling, reader, Vector3.One); }