aboutsummaryrefslogtreecommitdiff
path: root/src/geometry/contact.rs
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2020-09-01 17:05:24 +0200
committerSébastien Crozet <developer@crozet.re>2020-09-01 17:05:24 +0200
commit2f2a073ce47eaa17f44d88b9dc6cc56362c374e2 (patch)
tree0b32867995fecb4cd4f0fbd5de17c4e8bd0d9fd8 /src/geometry/contact.rs
parent9622827dc6aadb391512b95381edb1efc26b1b90 (diff)
downloadrapier-2f2a073ce47eaa17f44d88b9dc6cc56362c374e2.tar.gz
rapier-2f2a073ce47eaa17f44d88b9dc6cc56362c374e2.tar.bz2
rapier-2f2a073ce47eaa17f44d88b9dc6cc56362c374e2.zip
Fix mass property update when adding a collider.
Diffstat (limited to 'src/geometry/contact.rs')
-rw-r--r--src/geometry/contact.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/geometry/contact.rs b/src/geometry/contact.rs
index 2cda3e0..7e235c2 100644
--- a/src/geometry/contact.rs
+++ b/src/geometry/contact.rs
@@ -360,8 +360,8 @@ impl ContactManifold {
pair,
(subshape1, subshape2),
BodyPair::new(coll1.parent, coll2.parent),
- *coll1.delta(),
- *coll2.delta(),
+ *coll1.position_wrt_parent(),
+ *coll2.position_wrt_parent(),
(coll1.friction + coll2.friction) * 0.5,
(coll1.restitution + coll2.restitution) * 0.5,
)