From 6f16663998c4b81ffb18f4589af29d1561dc468b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 3 Apr 2022 21:32:27 +0200 Subject: [PATCH] :bug: Fix `AttractedToMovement` working only with `StaticBody2D` --- src/behaviours/movement/AttractedToMovement.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/behaviours/movement/AttractedToMovement.gd b/src/behaviours/movement/AttractedToMovement.gd index 04fe642..f0fb0a3 100644 --- a/src/behaviours/movement/AttractedToMovement.gd +++ b/src/behaviours/movement/AttractedToMovement.gd @@ -11,7 +11,7 @@ export var goal_path: NodePath onready var parent: KinematicBody2D = get_parent() -onready var goal: StaticBody2D = get_node(goal_path) if goal_path else null +onready var goal: PhysicsBody2D = get_node(goal_path) if goal_path else null var _goal_reached_triggered: bool = false