X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=rigidbody.h;h=3d2f4107ca962f433e4f85d46493c2911fc5e816;hb=8c376ed2e4021a18b0a6c6e800109d67ad09d198;hp=5796c7aed341b577afad3bc607e40a7b046bcabf;hpb=f99902f513b0ad606437bf32de47405dd4ea5f98;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/rigidbody.h b/rigidbody.h index 5796c7a..3d2f410 100644 --- a/rigidbody.h +++ b/rigidbody.h @@ -375,8 +375,7 @@ VG_STATIC void rb_update_transform( rigidbody *rb ) */ VG_STATIC void rb_extrapolate( rigidbody *rb, v3f co, v4f q ) { - float substep = vg_clampf( vg.accumulator / k_rb_delta, 0.0f, 1.0f ); - + float substep = vg.time_fixed_extrapolate; v3_muladds( rb->co, rb->v, k_rb_delta*substep, co ); if( v3_length2( rb->w ) > 0.0f ){