diff options
| -rw-r--r-- | src/geometry/narrow_phase.rs | 6 | ||||
| -rw-r--r-- | src_testbed/testbed.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/geometry/narrow_phase.rs b/src/geometry/narrow_phase.rs index 7ab641d..2b35898 100644 --- a/src/geometry/narrow_phase.rs +++ b/src/geometry/narrow_phase.rs @@ -438,7 +438,7 @@ impl NarrowPhase { } } - let pos12 = co1.position().inverse() * co2.position(); + let pos12 = co1.position().inv_mul(co2.position()); if let Ok(intersection) = query_dispatcher.intersection_test(&pos12, co1.shape(), co2.shape()) @@ -514,8 +514,8 @@ impl NarrowPhase { solver_flags.remove(SolverFlags::COMPUTE_IMPULSES); } - let pos12 = co1.position().inverse() * co2.position(); - query_dispatcher.contact_manifolds( + let pos12 = co1.position().inv_mul(co2.position()); + let _ = query_dispatcher.contact_manifolds( &pos12, co1.shape(), co2.shape(), diff --git a/src_testbed/testbed.rs b/src_testbed/testbed.rs index 2a72414..cc4262f 100644 --- a/src_testbed/testbed.rs +++ b/src_testbed/testbed.rs @@ -745,7 +745,7 @@ impl Testbed { .unwrap() .position(); let attach1 = self.cursor_pos; - let attach2 = body_pos.inverse() * attach1; + let attach2 = body_pos.inv_mul(&attach1); if let Some(ground) = self.ground_handle { let joint = MouseConstraint::new( |
