extends Camera3D
var target_rotation = PI # Ángulo de rotación objetivo (180 grados en radianes)
var current_rotation = 0.0
func _process(delta: float) -> void:
if current_rotation < target_rotation:
rotate_y(delta * PI)
current_rotation += delta * PI
if current_rotation >= target_rotation:
current_rotation = target_rotation
else:
rotation.y = target_rotation