1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Disable fall bobbing by default; enable using fall_bobbing_amount = 1.0

This commit is contained in:
Perttu Ahola 2013-04-23 23:19:36 +03:00
parent c03c296dc7
commit 36747794ab
3 changed files with 5 additions and 0 deletions

View file

@ -263,6 +263,8 @@ void Camera::update(LocalPlayer* player, f32 frametime, v2u32 screensize,
fall_bobbing = sin(fall_bobbing * 0.5 * M_PI) * -1;
// Amplify according to the intensity of the impact
fall_bobbing *= (1 - rangelim(50 / player->camera_impact, 0, 1)) * 5;
fall_bobbing *= g_settings->getFloat("fall_bobbing_amount");
}
// Set head node transformation