Skip to content
Snippets Groups Projects
Commit 1c9f05d7 authored by Calinou's avatar Calinou Committed by Craig Robbins
Browse files

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

parent 26cf98cc
No related branches found
No related tags found
No related merge requests found
...@@ -255,7 +255,7 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 busytime, ...@@ -255,7 +255,7 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 busytime,
{ {
f32 oldy = old_player_position.Y; f32 oldy = old_player_position.Y;
f32 newy = 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); player_position.Y = oldy * t + newy * (1-t);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment