Add joint softness per joint (#901)

This commit is contained in:
Dragos Daian
2025-11-21 16:48:52 +01:00
committed by GitHub
parent 5f687b0d29
commit e40d3a9dce
22 changed files with 442 additions and 200 deletions

View File

@@ -346,9 +346,9 @@ impl GenericContactConstraintBuilder {
multibodies: &MultibodyJointSet,
constraint: &mut GenericContactConstraint,
) {
let cfm_factor = params.contact_cfm_factor();
let cfm_factor = params.contact_softness.cfm_factor(params.dt);
let inv_dt = params.inv_dt();
let erp_inv_dt = params.contact_erp_inv_dt();
let erp_inv_dt = params.contact_softness.erp_inv_dt(params.dt);
// We dont update jacobians so the update is mostly identical to the non-generic velocity constraint.
let pose1 = multibodies