feat: player camera is now responsible for all look input handling

This commit is contained in:
Sara 2025-08-11 18:55:28 +02:00
parent 458b6f8079
commit 8567a274f1
3 changed files with 12 additions and 8 deletions

View file

@ -9,6 +9,7 @@ void PlayerCamera::on_look_input(Vector2 input) {
GETSET(rotation, {
rotation.x = CLAMP(rotation.x + input.y, -Math::PI / 2.0, Math::PI / 2.0);
});
global_rotate(Vector3{ 0.f, 1.f, 0.f }, input.x);
}
void PlayerCamera::update_fov() {