mirror of
https://github.com/minetest/minetest.git
synced 2024-11-24 00:23:46 +01:00
Return step smoothing value to 23
This commit is contained in:
parent
4a57ef12a1
commit
56a89fd265
@ -270,7 +270,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(-10*frametime);
|
f32 t = exp(-23*frametime);
|
||||||
player_position.Y = oldy * t + newy * (1-t);
|
player_position.Y = oldy * t + newy * (1-t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user