From 8c0e8b5bf73caaf2fd6f04fb97b9c13f2970c431 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 3 May 2024 13:59:15 +0200 Subject: update --- Scenes/Utilities.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Scenes/Utilities.gd') diff --git a/Scenes/Utilities.gd b/Scenes/Utilities.gd index f2dabe6..f43a359 100644 --- a/Scenes/Utilities.gd +++ b/Scenes/Utilities.gd @@ -106,7 +106,7 @@ func get_collision_shape_bounds(collision_shape: CollisionShape2D): if shape is RectangleShape2D: bounds = Rect2( - collision_shape.position - shape.get_rect().size/2, + collision_shape.global_position - shape.get_rect().size/2, shape.get_rect().size ) -- cgit v1.2.3