From ca3dab855be9614952ff5881ff80fc613802b773 Mon Sep 17 00:00:00 2001 From: Orange Date: Sun, 9 Nov 2025 17:15:01 +0300 Subject: [PATCH] Corrects transform order for collider MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reorders the transform application to translation, scale, then rotation. This ensures the collider’s world matrix is constructed correctly, preventing potential scaling or rotation issues in the GJK algorithm being developed on this branch. --- include/omath/collision/mesh_collider.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/omath/collision/mesh_collider.hpp b/include/omath/collision/mesh_collider.hpp index 4dce3ae..c67ab44 100644 --- a/include/omath/collision/mesh_collider.hpp +++ b/include/omath/collision/mesh_collider.hpp @@ -28,7 +28,7 @@ namespace omath::collision [[nodiscard]] source_engine::Mat4X4 to_world() const { - return mat_scale(m_scale) * mat_translation(m_origin) * source_engine::rotation_matrix(m_rotation); + return mat_translation(m_origin) * mat_scale(m_scale) * source_engine::rotation_matrix(m_rotation); } [[nodiscard]]