Skip to content
Permalink
Browse files

Increase step smoothing to fit 1:1 stairs (works well on slabs too)

Signed-off-by: Craig Robbins <kde.psych@gmail.com>
  • Loading branch information...
Calinou authored and Zeno- committed Oct 26, 2014
1 parent 26cf98c commit 1c9f05d792562374046e74ad3eb75988d529b15c
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}

0 comments on commit 1c9f05d

Please sign in to comment.
You can’t perform that action at this time.