commit 4bdec1aae25211570fe81afcfb35eb144b6b43c5
parent d1af86276eb202259d179f3a7ae0ef5c18d756fd
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Fri, 10 Nov 2017 19:04:30 +0200
Halve walk speed
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/clipmap.cc b/clipmap.cc
@@ -304,14 +304,14 @@ GAME_FRAME( game_frame ) {
 			}
 			else {
 				float current_speed = length( game->velocity );
-				float drop = max( acceleration, current_speed ) * acceleration * dt / 2.0f;
+				float drop = max( acceleration, current_speed ) * acceleration * dt / 6.0f;
 				float new_speed = max( 0.0f, current_speed - drop );
 				game->velocity = new_speed * ( game->velocity / current_speed );
 			}
 
 			if( fb != 0 || lr != 0 ) {
 				// apply acceleration
-				float max_speed = 10;
+				float max_speed = 5;
 
 				v3 forward_xy = v3_forward_xy( game->yaw );
 				v3 right_xy = normalize( cross( forward_xy, world_up ) );