From d355d374f9e3182750b2cfce1036d0cc011d60dd Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Thu, 19 Dec 2024 10:47:36 +0100 Subject: fixed bug --- src/crepe/system/CollisionSystem.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/crepe/system') diff --git a/src/crepe/system/CollisionSystem.cpp b/src/crepe/system/CollisionSystem.cpp index 719713c..6ed640a 100644 --- a/src/crepe/system/CollisionSystem.cpp +++ b/src/crepe/system/CollisionSystem.cpp @@ -184,6 +184,7 @@ bool CollisionSystem::detect_collision(CollisionInternal & self,CollisionInterna }; resolution = this->get_box_circle_detection(BOX1, CIRCLE2); if(resolution == vec2{-1,-1}) return false; + resolution = -resolution; break; } case CollisionInternalType::CIRCLE_CIRCLE: { -- cgit v1.2.3