update vg
[carveJwlIkooP6JGAAIwe30JlM.git] / player_walk.c
index 7f857fed8d1cc7c82224a8d792e905c0762f8408..7d160a7a09d0d801cb19f15bc230cb5f9b37c8f1 100644 (file)
@@ -599,7 +599,7 @@ VG_STATIC void player__walk_post_update( player_instance *player )
    m3x3_copy( player->rb.to_world, mtx );
    v3_add( player->rb.co, player->basis[1], mtx[3] );
 
-   float substep = vg_clampf( vg.accumulator / k_rb_delta, 0.0f, 1.0f );
+   float substep = vg.time_fixed_extrapolate;
    v3_muladds( mtx[3], player->rb.v, k_rb_delta*substep, mtx[3] );
    debug_capsule( mtx, w->collider.radius, w->collider.height, VG__YELOW );