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) = if let Ok(intersection) =
query_dispatcher.intersection_test(&pos12, co1.shape(), co2.shape()) query_dispatcher.intersection_test(&pos12, co1.shape(), co2.shape())
@@ -514,8 +514,8 @@ impl NarrowPhase {
solver_flags.remove(SolverFlags::COMPUTE_IMPULSES); solver_flags.remove(SolverFlags::COMPUTE_IMPULSES);
} }
let pos12 = co1.position().inverse() * co2.position(); let pos12 = co1.position().inv_mul(co2.position());
query_dispatcher.contact_manifolds( let _ = query_dispatcher.contact_manifolds(
&pos12, &pos12,
co1.shape(), co1.shape(),
co2.shape(), co2.shape(),

View File

@@ -745,7 +745,7 @@ impl Testbed {
.unwrap() .unwrap()
.position(); .position();
let attach1 = self.cursor_pos; 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 { if let Some(ground) = self.ground_handle {
let joint = MouseConstraint::new( let joint = MouseConstraint::new(