Merge pull request #359 from dimforge/fix-contact-event-magnitude
Fix the max_force_direction magnitude
This commit is contained in:
@@ -170,7 +170,6 @@ impl ContactForceEvent {
|
|||||||
// because it’s an input of this function already
|
// because it’s an input of this function already
|
||||||
// assumed to be a force instead of an impulse.
|
// assumed to be a force instead of an impulse.
|
||||||
result.total_force *= inv_dt;
|
result.total_force *= inv_dt;
|
||||||
result.max_force_direction *= inv_dt;
|
|
||||||
result.max_force_magnitude *= inv_dt;
|
result.max_force_magnitude *= inv_dt;
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user