mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Increase stepheight on android by 0.5 to smoothen movement
This commit is contained in:
parent
b7c0e4b333
commit
25235a4324
2 changed files with 5 additions and 2 deletions
|
@ -205,8 +205,13 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d,
|
|||
}
|
||||
}
|
||||
|
||||
// this shouldn't be hardcoded but transmitted from server
|
||||
float player_stepheight = touching_ground ? (BS*0.6) : (BS*0.2);
|
||||
|
||||
#ifdef __ANDROID__
|
||||
player_stepheight += 0.5;
|
||||
#endif
|
||||
|
||||
v3f accel_f = v3f(0,0,0);
|
||||
|
||||
collisionMoveResult result = collisionMoveSimple(env, m_gamedef,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue