Use Isometry::inv_mul.

This commit is contained in:
Crozet Sébastien
2020-12-18 17:08:00 +01:00
parent 7488cd02e8
commit 0fb4b4faef
2 changed files with 4 additions and 4 deletions

View File

@@ -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(),