mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01:00
Disable fall bobbing by default; enable using fall_bobbing_amount = 1.0
This commit is contained in:
parent
c03c296dc7
commit
36747794ab
@ -136,6 +136,8 @@
|
|||||||
#screenshot_path = .
|
#screenshot_path = .
|
||||||
# Amount of view bobbing (0 = no view bobbing, 1.0 = normal, 2.0 = double)
|
# Amount of view bobbing (0 = no view bobbing, 1.0 = normal, 2.0 = double)
|
||||||
#view_bobbing_amount = 1.0
|
#view_bobbing_amount = 1.0
|
||||||
|
# Amount of fall bobbing (0 = no fall bobbing, 1.0 = normal, 2.0 = double)
|
||||||
|
#fall_bobbing_amount = 0.0
|
||||||
# Anaglyph stereo
|
# Anaglyph stereo
|
||||||
#anaglyph = false
|
#anaglyph = false
|
||||||
#anaglyph_strength = 0.1
|
#anaglyph_strength = 0.1
|
||||||
|
@ -263,6 +263,8 @@ void Camera::update(LocalPlayer* player, f32 frametime, v2u32 screensize,
|
|||||||
fall_bobbing = sin(fall_bobbing * 0.5 * M_PI) * -1;
|
fall_bobbing = sin(fall_bobbing * 0.5 * M_PI) * -1;
|
||||||
// Amplify according to the intensity of the impact
|
// Amplify according to the intensity of the impact
|
||||||
fall_bobbing *= (1 - rangelim(50 / player->camera_impact, 0, 1)) * 5;
|
fall_bobbing *= (1 - rangelim(50 / player->camera_impact, 0, 1)) * 5;
|
||||||
|
|
||||||
|
fall_bobbing *= g_settings->getFloat("fall_bobbing_amount");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set head node transformation
|
// Set head node transformation
|
||||||
|
@ -107,6 +107,7 @@ void set_default_settings(Settings *settings)
|
|||||||
settings->setDefault("enable_clouds", "true");
|
settings->setDefault("enable_clouds", "true");
|
||||||
settings->setDefault("screenshot_path", ".");
|
settings->setDefault("screenshot_path", ".");
|
||||||
settings->setDefault("view_bobbing_amount", "1.0");
|
settings->setDefault("view_bobbing_amount", "1.0");
|
||||||
|
settings->setDefault("fall_bobbing_amount", "0.0");
|
||||||
settings->setDefault("enable_3d_clouds", "true");
|
settings->setDefault("enable_3d_clouds", "true");
|
||||||
settings->setDefault("cloud_height", "120");
|
settings->setDefault("cloud_height", "120");
|
||||||
settings->setDefault("menu_clouds", "true");
|
settings->setDefault("menu_clouds", "true");
|
||||||
|
Loading…
Reference in New Issue
Block a user