1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-22 16:14:22 +00:00
hella-farm/behaviours/move_towards_mouse.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
185 B
GDScript

extends MoveTowards
class_name MoveTowardsMouse
@onready var game := MainGame.get_ancestor(self)
func get_followed_global_position():
return game.camera.get_global_mouse_position()