mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
Relatively snappy object-ground collision detection
This commit is contained in:
parent
94feb62b08
commit
290e921920
9 changed files with 81 additions and 31 deletions
|
@ -92,7 +92,7 @@ struct SmoothTranslator
|
|||
if(anim_time > 0.001)
|
||||
moveratio = anim_time_counter / anim_time;
|
||||
// Move a bit less than should, to avoid oscillation
|
||||
moveratio = moveratio * 0.5;
|
||||
moveratio = moveratio * 0.8;
|
||||
float move_end = 1.5;
|
||||
if(aim_is_end)
|
||||
move_end = 1.0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue