From: Calinou Date: Sun, 26 Oct 2014 10:13:00 +0000 (+0100) Subject: Increase step smoothing to fit 1:1 stairs (works well on slabs too) X-Git-Tag: 0.4.11~138 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1c9f05d792562374046e74ad3eb75988d529b15c;p=oweals%2Fminetest.git Increase step smoothing to fit 1:1 stairs (works well on slabs too) Signed-off-by: Craig Robbins --- diff --git a/src/camera.cpp b/src/camera.cpp index 0b4e4fd53..09e3c836a 100644 --- a/src/camera.cpp +++ b/src/camera.cpp @@ -255,7 +255,7 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 busytime, { f32 oldy = old_player_position.Y; f32 newy = player_position.Y; - f32 t = exp(-23*frametime); + f32 t = exp(-10*frametime); player_position.Y = oldy * t + newy * (1-t); }