From 516d22c1737a9c94026b5ff0c9856bc5549aa416 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 3 May 2024 09:32:22 +0200 Subject: update --- Scenes/Utilities.gd | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Scenes/Utilities.gd') diff --git a/Scenes/Utilities.gd b/Scenes/Utilities.gd index bcdfe7e..f2dabe6 100644 --- a/Scenes/Utilities.gd +++ b/Scenes/Utilities.gd @@ -150,6 +150,10 @@ class Collision: elif shape is CapsuleShape2D: shape.set_height(shape.get_height() + 1) shape.set_radius(shape.get_radius() + 1) + elif shape is CircleShape2D: + shape.set_radius(shape.get_radius() + 1) + else: + print("collision shape type not implemented for " + str(shape)) collision_shape.set_shape(shape) -- cgit v1.2.3