From 98ab67b5c4a4f2df16089e84488148e8de1f977c Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Sun, 1 Dec 2024 23:08:48 +0100 Subject: removed comments --- src/crepe/system/CollisionSystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/crepe/system/CollisionSystem.cpp') diff --git a/src/crepe/system/CollisionSystem.cpp b/src/crepe/system/CollisionSystem.cpp index e0c6d03..48baaf5 100644 --- a/src/crepe/system/CollisionSystem.cpp +++ b/src/crepe/system/CollisionSystem.cpp @@ -148,8 +148,8 @@ vec2 CollisionSystem::box_box_resolution(const BoxCollider& box_collider1,const float overlap_x = (half_width1 + half_width2) - std::abs(delta.x); float overlap_y = (half_height1 + half_height2) - std::abs(delta.y); - // Check if there is a collision - if (overlap_x > 0 && overlap_y > 0) {//should always be true check if this can be removed + // Check if there is a collision should always be true + if (overlap_x > 0 && overlap_y > 0) { // Determine the direction of resolution if (overlap_x < overlap_y) { // Resolve along the X-axis (smallest overlap) -- cgit v1.2.3