4463e524aa
Auto-format all GDScript files using gdformat from gdtoolkit. This is a baseline formatting pass to ensure consistent style: - Normalizes indentation and spacing - Wraps long lines to 100 characters - Removes trailing whitespace - Standardizes blank lines between functions 68 files reformatted, 8 files left unchanged (3rd-party addon files with parse errors excluded).
20 lines
443 B
GDScript
20 lines
443 B
GDScript
extends Camera3D
|
|
|
|
@export var focus_point := Vector3(0.0, 2.0, 0.0)
|
|
@export var orbit_speed := 0.025
|
|
@export var animate_orbit := true
|
|
|
|
|
|
func _ready() -> void:
|
|
look_at(focus_point, Vector3.UP)
|
|
|
|
|
|
func _process(delta: float) -> void:
|
|
if not animate_orbit:
|
|
return
|
|
|
|
var offset := global_position - focus_point
|
|
offset = offset.rotated(Vector3.UP, orbit_speed * delta)
|
|
global_position = focus_point + offset
|
|
look_at(focus_point, Vector3.UP)
|