I've started to make an fps game but the camera wont move on the y axis at all
`class_name CameraController extends Node3D
@export var debug :bool = true
@export_category("References")
@export var player_controller : PlayerController
@export var compnent_mouse_capture : MouseCaptureComponent
@export_category("Camera Settings")
@export_group("Camera Tilt")
@export_range(-90,-60) var tilt_lower_limit : int = -90
@export_range(60,90) var tilt_upper_limit : int = 90
var _rotation : Vector3
#rotating player camera
func process(delta: float) -> void:
update_camera_rotation(compnent_mouse_capture._mouse_input)
func update_camera_rotation(input:Vector2) -> void:
_rotation.x += input.y
_rotation.y += input.x
rotation.x = clamp(rotation.x, deg_to_rad(tilt_lower_limit),deg_to_rad(tilt_upper_limit))
#rotating player character direction alongside camera
var player_rotation = Vector3(0.0,rotation.y,0.0)
var _camera_rotation = Vector3(rotation.x,0.0,0.0)
transform.basis = Basis.from_euler((_camera_rotation))
player_controller.update_rotation(_player_rotation)
rotation.z = 0.0
func _update_camera_height(delta:float, direction:int) -> void:
if position.y >= crouch_offset and position.y <= DEFAULT_HEIGHT:
position.y = clampf(position.y + (crouch_speeddirection)delta,crouch_offset,DEFAULT_HEIGHT)
`
that's the code in my camera controller script
If anyone could direct me to the problem that would be greatly appreciated