clamp fov change with g force

This commit is contained in:
yuni 2024-04-10 22:04:07 +02:00
parent 8b2debfa37
commit 860d7f8d4b

View file

@ -105,7 +105,7 @@ pub fn update_fov(
settings.is_zooming = true;
}
} else {
fov = (gforce.visual_effect * settings.fov_highspeed + settings.fov).to_radians();
fov = (gforce.visual_effect.clamp(0.0, 1.0) * settings.fov_highspeed + settings.fov).to_radians();
if settings.is_zooming {
settings.is_zooming = false;
}