diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-06 11:42:31 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-06 11:42:31 +0100 |
commit | d0130b79680ffb873b56eafbb689aaaafa1ac2b3 (patch) | |
tree | 2471e25b6d31cc671ecca563e53ffc285b828386 /src/crepe/system/CollisionSystem.cpp | |
parent | 453aeafda1503aeafa54b8f6e293936c1a3db5ea (diff) |
bug fox
Diffstat (limited to 'src/crepe/system/CollisionSystem.cpp')
-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 f75d0ad..fe2d669 100644 --- a/src/crepe/system/CollisionSystem.cpp +++ b/src/crepe/system/CollisionSystem.cpp @@ -191,7 +191,7 @@ CollisionSystem::collision_handler(CollisionInternal & data1, CollisionInternal } Direction resolution_direction = Direction::NONE; - if (resolution.x != 0 && resolution.y > 0) { + if (resolution.x != 0 && resolution.y != 0) { resolution_direction = Direction::BOTH; } else if (resolution.x != 0) { resolution_direction = Direction::X_DIRECTION; @@ -306,7 +306,7 @@ void CollisionSystem::determine_collision_handler(CollisionInfo & info) { if (info.this_rigidbody.data.body_type == Rigidbody::BodyType::STATIC) return; // If second body is static perform the static collision handler in this system if (info.other_rigidbody.data.body_type == Rigidbody::BodyType::STATIC) { - static_collision_handler(info); + this->static_collision_handler(info); }; // Call collision event for user CollisionEvent data(info); |