From 56e46c606dff13e33b77bd3f5032f2eb9c5b58f5 Mon Sep 17 00:00:00 2001 From: samisalreadytaken <46823719+samisalreadytaken@users.noreply.github.com> Date: Fri, 26 Aug 2022 22:15:02 +0300 Subject: [PATCH] Fix incorrect plane calculation in IntersectRayWithOBB --- mp/src/public/collisionutils.cpp | 2 +- sp/src/public/collisionutils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mp/src/public/collisionutils.cpp b/mp/src/public/collisionutils.cpp index 2549a569..6456e5b9 100644 --- a/mp/src/public/collisionutils.cpp +++ b/mp/src/public/collisionutils.cpp @@ -1666,7 +1666,7 @@ bool IntersectRayWithOBB( const Ray_t &ray, const matrix3x4_t &matOBBToWorld, } temp.type = 3; - MatrixITransformPlane( matOBBToWorld, temp, pTrace->plane ); + MatrixTransformPlane( matOBBToWorld, temp, pTrace->plane ); return true; } diff --git a/sp/src/public/collisionutils.cpp b/sp/src/public/collisionutils.cpp index d26db4ab..9947b5bf 100644 --- a/sp/src/public/collisionutils.cpp +++ b/sp/src/public/collisionutils.cpp @@ -1666,7 +1666,7 @@ bool IntersectRayWithOBB( const Ray_t &ray, const matrix3x4_t &matOBBToWorld, } temp.type = 3; - MatrixITransformPlane( matOBBToWorld, temp, pTrace->plane ); + MatrixTransformPlane( matOBBToWorld, temp, pTrace->plane ); return true; }