Use Isometry::inv_mul.
This commit is contained in:
@@ -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(),
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user