From 25235a432425e60b1b917adcc669449933403cb1 Mon Sep 17 00:00:00 2001 From: sapier Date: Sun, 11 Jan 2015 04:32:56 +0100 Subject: Increase stepheight on android by 0.5 to smoothen movement --- src/localplayer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/localplayer.cpp b/src/localplayer.cpp index b36bef4d9..8570dd2f0 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -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, -- cgit v1.2.3