aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/CollisionSystem.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-19 10:47:36 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-19 10:47:36 +0100
commitd355d374f9e3182750b2cfce1036d0cc011d60dd (patch)
tree8c118cfb0be5294a0cee6671d5c2766f1fac5d44 /src/crepe/system/CollisionSystem.cpp
parent714edd69d53a6243e9a2b81f62d309c96b71dd8d (diff)
fixed bug
Diffstat (limited to 'src/crepe/system/CollisionSystem.cpp')
-rw-r--r--src/crepe/system/CollisionSystem.cpp1
1 files changed, 1 insertions, 0 deletions
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: {