Skip to content
Snippets Groups Projects
Commit d7465925 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

Faster player movement and smaller collision box

parent 55d310b0
No related branches found
No related tags found
No related merge requests found
...@@ -293,8 +293,8 @@ void LocalPlayer::move(f32 dtime, Map &map, f32 pos_max_d, ...@@ -293,8 +293,8 @@ void LocalPlayer::move(f32 dtime, Map &map, f32 pos_max_d,
// This should always apply, otherwise there are glitches // This should always apply, otherwise there are glitches
assert(d > pos_max_d); assert(d > pos_max_d);
float player_radius = BS*0.35; float player_radius = BS*0.30;
float player_height = BS*1.7; float player_height = BS*1.55;
// Maximum distance over border for sneaking // Maximum distance over border for sneaking
f32 sneak_max = BS*0.4; f32 sneak_max = BS*0.4;
...@@ -622,7 +622,7 @@ void LocalPlayer::applyControl(float dtime) ...@@ -622,7 +622,7 @@ void LocalPlayer::applyControl(float dtime)
// Random constants // Random constants
f32 walk_acceleration = 4.0 * BS; f32 walk_acceleration = 4.0 * BS;
f32 walkspeed_max = 4.0 * BS; f32 walkspeed_max = 5.0 * BS;
setPitch(control.pitch); setPitch(control.pitch);
setYaw(control.yaw); setYaw(control.yaw);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment