contact_velocities[i] = vn;
}
- rb_presolve_contacts( rb_contact_buffer, rb_contact_count );
+ rb_presolve_contacts( rb_contact_buffer, vg.time_fixed_delta,
+ rb_contact_count );
rb_presolve_swingtwist_constraints( rd->cone_constraints,
rd->cone_constraints_count );
if( run_sim &&
(v3_length2(player_dead.v_lpf)>(k_ragdoll_active_threshold*
k_ragdoll_active_threshold)) ){
- assert( rd->cone_constraints_count == rd->position_constraints_count );
-
mdl_keyframe anim[32];
skeleton_sample_anim( &localplayer.skeleton, player_dead.anim_bail,
0.0f, anim );
v3f torque;
v3_muls( axis, F, torque );
- v3_muladds( st->rbb->w, torque, k_rb_delta, st->rbb->w );
+ v3_muladds( st->rbb->w, torque, vg.time_fixed_delta, st->rbb->w );
/* apply a adjustment to keep velocity at joint 0 */
#if 0
v3f wcb, vcb;
m3x3_mulv( st->rbb->to_world, pc->lcb, wcb );
v3_cross( torque, wcb, vcb );
- v3_muladds( st->rbb->v, vcb, k_rb_delta, st->rbb->v );
+ v3_muladds( st->rbb->v, vcb, vg.time_fixed_delta, st->rbb->v );
#endif
}
}