1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-22 08:04:23 +00:00
hella-farm/behaviours/move_towards_target.gd
Lorenzo Rossi 8f46ff5022 Generalize move_towards_mouse in move_towards
Also create move_towards_target
2024-04-14 18:20:50 +02:00

8 lines
147 B
GDScript

extends MoveTowards
class_name MoveTowardsTarget
@export var target: Node2D
func get_followed_global_position():
return target.global_position