clamp fov change with g force
This commit is contained in:
parent
8b2debfa37
commit
860d7f8d4b
|
@ -105,7 +105,7 @@ pub fn update_fov(
|
||||||
settings.is_zooming = true;
|
settings.is_zooming = true;
|
||||||
}
|
}
|
||||||
} else {
|
} 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 {
|
if settings.is_zooming {
|
||||||
settings.is_zooming = false;
|
settings.is_zooming = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue