Compare commits

...

2 commits

Author SHA1 Message Date
3a635e9551 player: removed empty lines 2026-01-22 17:51:31 +13:00
44c3cfa0d9 player: clamp camera rotation 2026-01-22 17:41:39 +13:00

View file

@ -11,6 +11,7 @@ func rotate_camera_y(y, delta):
func rotate_camera_x(x, delta): func rotate_camera_x(x, delta):
$InnerGimbal.rotate_object_local( $InnerGimbal.rotate_object_local(
Vector3.RIGHT, x * rotation_speed * delta) Vector3.RIGHT, x * rotation_speed * delta)
$InnerGimbal.rotation.x = clamp($InnerGimbal.rotation.x,-0.8,0.7)
func _process(delta): func _process(delta):
# rotate outer gimbal around y axis # rotate outer gimbal around y axis