Increase step smoothing to fit 1:1 stairs (works well on slabs too)
authorCalinou <calinou@opmbx.org>
Sun, 26 Oct 2014 10:13:00 +0000 (11:13 +0100)
committerCraig Robbins <kde.psych@gmail.com>
Wed, 26 Nov 2014 07:28:02 +0000 (17:28 +1000)
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
src/camera.cpp

index 0b4e4fd53536ac5a6517e2bc7ef3c6fc297163de..09e3c836a14a07dd6871cd8704cf9ba2b62b2b1e 100644 (file)
@@ -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);
        }