summaryrefslogtreecommitdiff
path: root/Scenes/Utilities.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Scenes/Utilities.gd')
-rw-r--r--Scenes/Utilities.gd2
1 files changed, 1 insertions, 1 deletions
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
)