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

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