1
Fork 0
mirror of https://github.com/Steffo99/nanogolf.git synced 2024-11-22 08:04:21 +00:00
algodist-steffo-nanogolf/scenes/follow_camera.gd

11 lines
166 B
GDScript3
Raw Normal View History

2024-02-18 17:15:59 +00:00
extends Camera2D
class_name FollowCamera
@export var target: Node2D = null
2024-02-18 17:15:59 +00:00
func _physics_process(_delta):
if target != null:
2024-03-15 18:57:15 +00:00
position = target.global_position