aboutsummaryrefslogtreecommitdiff
path: root/src/dynamics/rigid_body_components.rs
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2022-05-30 18:21:35 +0200
committerSébastien Crozet <developer@crozet.re>2022-05-30 18:29:18 +0200
commit6ce26f3818492682a8572c895264f1e63f94b9d5 (patch)
treed8efa80fafcc94584417c7da24f2bf99f6eb31ec /src/dynamics/rigid_body_components.rs
parentc630635e57624385123b4a0fb658018bc6fdba91 (diff)
downloadrapier-6ce26f3818492682a8572c895264f1e63f94b9d5.tar.gz
rapier-6ce26f3818492682a8572c895264f1e63f94b9d5.tar.bz2
rapier-6ce26f3818492682a8572c895264f1e63f94b9d5.zip
CCD improvements
- Fix bug where the CCD thickness wasn’t initialized properly. - Fix bug where the contact compliance would result in unwanted tunelling, despite CCD being enabled.
Diffstat (limited to 'src/dynamics/rigid_body_components.rs')
-rw-r--r--src/dynamics/rigid_body_components.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynamics/rigid_body_components.rs b/src/dynamics/rigid_body_components.rs
index b818ce2..3d35d17 100644
--- a/src/dynamics/rigid_body_components.rs
+++ b/src/dynamics/rigid_body_components.rs
@@ -752,7 +752,7 @@ pub struct RigidBodyCcd {
impl Default for RigidBodyCcd {
fn default() -> Self {
Self {
- ccd_thickness: 0.0,
+ ccd_thickness: Real::MAX,
ccd_max_dist: 0.0,
ccd_active: false,
ccd_enabled: false,