X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_walk.c;h=7d160a7a09d0d801cb19f15bc230cb5f9b37c8f1;hb=8c376ed2e4021a18b0a6c6e800109d67ad09d198;hp=7f857fed8d1cc7c82224a8d792e905c0762f8408;hpb=01e2535f8daaab0e3d46dcc61a08a9268babd47c;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_walk.c b/player_walk.c index 7f857fe..7d160a7 100644 --- a/player_walk.c +++ b/player_walk.c @@ -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 );