1
Fork 0
mirror of https://github.com/Steffo99/cinnos.git synced 2024-11-21 23:54:20 +00:00
cinnos/Camera3D.gd
2023-11-25 15:48:08 +01:00

13 lines
188 B
GDScript

extends Camera3D
@export var target: Node
@onready var offset: Vector3
func _ready():
offset = position - target.position
func _process(delta):
position = target.position + offset