Minor performance improvement
parent
f400b374fd
commit
5db9b7c627
|
@ -163,5 +163,7 @@ class PhysicsElementsHandler:
|
||||||
if sprite is not collider:
|
if sprite is not collider:
|
||||||
if sprite.collides_with(collider, TOLERANCE):
|
if sprite.collides_with(collider, TOLERANCE):
|
||||||
collides_with.append(collider)
|
collides_with.append(collider)
|
||||||
|
if len(collides_with) >= 2:
|
||||||
|
break
|
||||||
|
|
||||||
return collides_with
|
return collides_with
|
||||||
|
|
Loading…
Reference in New Issue