diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-05-03 13:59:15 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-05-03 13:59:15 +0200 |
commit | 8c0e8b5bf73caaf2fd6f04fb97b9c13f2970c431 (patch) | |
tree | 990b6e09eb2f6b3cb494cca17726ceae1bc7891f /Scenes/Utilities.gd | |
parent | 516d22c1737a9c94026b5ff0c9856bc5549aa416 (diff) |
update
Diffstat (limited to 'Scenes/Utilities.gd')
-rw-r--r-- | Scenes/Utilities.gd | 2 |
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 ) |