Skip to content

Commit

Permalink
Increase step smoothing to fit 1:1 stairs (works well on slabs too)
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
  • Loading branch information
Calinou authored and Zeno- committed Nov 26, 2014
1 parent 26cf98c commit 1c9f05d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/camera.cpp
Expand Up @@ -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);
}

Expand Down

0 comments on commit 1c9f05d

Please sign in to comment.