// Token: 0x0600015C RID: 348 RVA: 0x00009DF8 File Offset: 0x00007FF8 private void UpdateBonesMatricesAndPos(GameProcess gameProcess) { IntPtr pointer = gameProcess.Process.Read(base.AddressBase + Offsets.m_dwBoneMatrix); for (int i = 0; i < this.BonesPos.Length; i++) { matrix3x4_t matrix3x4_t = gameProcess.Process.Read(pointer + i * Marshal.SizeOf <matrix3x4_t>()); this.BonesMatrices[i] = matrix3x4_t.ToMatrix(); this.BonesPos[i] = new Vector3(matrix3x4_t.m30, matrix3x4_t.m31, matrix3x4_t.m32); } }
// Token: 0x0600013B RID: 315 RVA: 0x00009638 File Offset: 0x00007838 public static Matrix ToMatrix(this matrix3x4_t matrix) { Matrix result = default(Matrix); result.M11 = matrix.m00; result.M12 = matrix.m01; result.M13 = matrix.m02; result.M21 = matrix.m10; result.M22 = matrix.m11; result.M23 = matrix.m12; result.M31 = matrix.m20; result.M32 = matrix.m21; result.M33 = matrix.m22; result.M41 = matrix.m30; result.M42 = matrix.m31; result.M43 = matrix.m32; result.M44 = 1f; return(result); }