physics
[carveJwlIkooP6JGAAIwe30JlM.git] / player.h
index e4814d3400d1b2066e24f769638b352dafc62ae8..fc435dc849bfdc34e19433108157b9bd90ab50f9 100644 (file)
--- a/player.h
+++ b/player.h
@@ -396,12 +396,9 @@ static void player_update_post(void)
 
             float dist = vg_maxf( v3_dist( fr->pos, fr1->pos ), 0.001f ),
                   subl = vg_fractf( player.rewind_time ) + 0.001f,
-                  
-#if 0
-                  speed=sqrtf(player.rewind_time*player.rewind_time+11.0f)*3.0f,
-#else
-                  speed = (3.0f-(1.0f/(0.4f+0.4f*player.rewind_time)))*28.0f,
-#endif
+
+                  sramp= 3.0f-(1.0f/(0.4f+0.4f*player.rewind_time)),
+                  speed = sramp*28.0f + 0.5f*player.rewind_time,
                   mod  = speed * (budget / dist),
 
                   advl = vg_minf( mod, subl ),