diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-01 23:08:48 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-01 23:08:48 +0100 |
commit | 98ab67b5c4a4f2df16089e84488148e8de1f977c (patch) | |
tree | e0715fd02f5f184aaeb042bd06c37d878cb08c94 /src/crepe/system | |
parent | b6fdd1d644368226054094a282f5db24b31b5ba2 (diff) |
removed comments
Diffstat (limited to 'src/crepe/system')
-rw-r--r-- | src/crepe/system/CollisionSystem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) |