Compare commits

..

2 commits

Author SHA1 Message Date
05c8dbca70 camera: fix wrong zoom input event 2026-01-25 19:49:10 +13:00
f352190612 camera: added camera zooming 2026-01-25 19:47:07 +13:00

View file

@ -63,6 +63,6 @@ func _process(delta):
# reset gimbals # reset gimbals
if Input.is_action_pressed("cam_reset"): if Input.is_action_pressed("cam_reset"):
reset() reset()
current_zoom = clamp(current_zoom,zoom_min,zoom_max) current_zoom = clamp(current_zoom,zoom_min,zoom_max)
$InnerGimbal/Camera3D.position = Vector3($InnerGimbal/Camera3D.position.x,current_zoom,current_zoom) $InnerGimbal/Camera3D.position = Vector3($InnerGimbal/Camera3D.position.x,current_zoom,current_zoom)