diff --git a/project/physics/PhysicsElementsHandler.py b/project/physics/PhysicsElementsHandler.py index e3a135a..5d13720 100644 --- a/project/physics/PhysicsElementsHandler.py +++ b/project/physics/PhysicsElementsHandler.py @@ -163,5 +163,7 @@ class PhysicsElementsHandler: if sprite is not collider: if sprite.collides_with(collider, TOLERANCE): collides_with.append(collider) + if len(collides_with) >= 2: + break return collides_with