Fix incorrect plane calculation in IntersectRayWithOBB

This commit is contained in:
samisalreadytaken 2022-08-26 22:15:02 +03:00
parent 0d8dceea43
commit 56e46c606d
2 changed files with 2 additions and 2 deletions

View file

@ -1666,7 +1666,7 @@ bool IntersectRayWithOBB( const Ray_t &ray, const matrix3x4_t &matOBBToWorld,
} }
temp.type = 3; temp.type = 3;
MatrixITransformPlane( matOBBToWorld, temp, pTrace->plane ); MatrixTransformPlane( matOBBToWorld, temp, pTrace->plane );
return true; return true;
} }

View file

@ -1666,7 +1666,7 @@ bool IntersectRayWithOBB( const Ray_t &ray, const matrix3x4_t &matOBBToWorld,
} }
temp.type = 3; temp.type = 3;
MatrixITransformPlane( matOBBToWorld, temp, pTrace->plane ); MatrixTransformPlane( matOBBToWorld, temp, pTrace->plane );
return true; return true;
} }