Compare commits

..

3 commits

Author SHA1 Message Date
Sara 569ac1f712 tweak: lowered running fov 2025-08-12 13:41:17 +02:00
Sara efff355479 fix: when resetting rifle fov, set to 1 ipv 0 2025-08-12 13:41:07 +02:00
Sara a55fe18a6c fix: clamping camera fov 2025-08-12 13:40:54 +02:00
3 changed files with 3 additions and 3 deletions

View file

@ -30,7 +30,7 @@ void PlayerBody::on_child_entered(Node *node) {
}
void PlayerBody::process(double delta) {
float const target_fov{ get_is_running() ? 1.25f : 1.0f };
float const target_fov{ get_is_running() ? 1.1f : 1.0f };
fov = Math::move_toward(fov, target_fov, float(delta * 2.0));
this->camera->set_fov_factor(fov);
}

View file

@ -14,7 +14,7 @@ void PlayerCamera::on_look_input(Vector2 input) {
void PlayerCamera::update_fov() {
if (!Engine::get_singleton()->is_editor_hint() && is_ready()) {
set_fov(this->base_fov * this->fov_factor);
set_fov(CLAMP(this->base_fov * this->fov_factor, 1, 179));
}
}

View file

@ -186,7 +186,7 @@ void Rifle::notify_deselected() {
hud->set_reticle_visibility(true);
}
this->in_alt_mode = false;
this->fov = 0.f;
this->fov = 1.f;
}
void Rifle::reload_full() {