mirror of
https://github.com/moparisthebest/minetest
synced 2024-11-10 19:35:12 -05:00
Increase step smoothing to fit 1:1 stairs (works well on slabs too)
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
This commit is contained in:
parent
26cf98ccfc
commit
1c9f05d792
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user