Fix reported contact impulse in the contact force event

Address https://github.com/dimforge/rapier.js/issues/261
This commit is contained in:
Sébastien Crozet
2024-03-23 16:00:19 +01:00
committed by Sébastien Crozet
parent 59dc9bfe00
commit 09af4313fa
8 changed files with 80 additions and 40 deletions

View File

@@ -201,7 +201,7 @@ impl GenericTwoBodyConstraintBuilder {
gcross2,
rhs: na::zero(),
rhs_wo_bias: na::zero(),
total_impulse: na::zero(),
impulse_accumulator: na::zero(),
impulse: na::zero(),
r,
};