Merge remote-tracking branch 'origin/main'
commit
3ea61ef674
|
@ -167,8 +167,7 @@ class PhysicsElementsHandler:
|
|||
for collider in colliders:
|
||||
if sprite is not collider:
|
||||
distance = self.calculate_basic_distance(sprite, collider)
|
||||
if distance > max(self.get_sprite_size_for_distance(sprite, screen_transform),
|
||||
self.get_sprite_size_for_distance(collider, screen_transform)):
|
||||
if distance > 50:
|
||||
continue
|
||||
if sprite.collides_with(collider, TOLERANCE):
|
||||
collides_with.append(collider)
|
||||
|
|
Loading…
Reference in New Issue