Merge pull request #359 from dimforge/fix-contact-event-magnitude

Fix the max_force_direction magnitude
This commit is contained in:
Sébastien Crozet
2022-07-04 17:01:57 +02:00
committed by GitHub

View File

@@ -170,7 +170,6 @@ impl ContactForceEvent {
// because its an input of this function already
// assumed to be a force instead of an impulse.
result.total_force *= inv_dt;
result.max_force_direction *= inv_dt;
result.max_force_magnitude *= inv_dt;
result
}