extends Camera3D @export var target: Node3D @export var offset: Vector3 = Vector3(0, 3, 8) @export var follow_speed: float = 12.0 func _ready(): var tpos = target.global_position + offset global_position = tpos look_at(target.global_position, Vector3.UP) # rotation.x = 0 func _process(delta): if not target: return var tpos = target.global_position + offset global_position = global_position.lerp(tpos, follow_speed * delta)