mirror of
https://github.com/Steffo99/nanogolf.git
synced 2024-11-27 18:44:18 +00:00
10 lines
166 B
GDScript
10 lines
166 B
GDScript
extends Camera2D
|
|
class_name FollowCamera
|
|
|
|
|
|
@export var target: Node2D = null
|
|
|
|
|
|
func _physics_process(_delta):
|
|
if target != null:
|
|
position = target.global_position
|