diff options
| author | Sébastien Crozet <developer@crozet.re> | 2022-05-30 18:21:35 +0200 |
|---|---|---|
| committer | Sébastien Crozet <developer@crozet.re> | 2022-05-30 18:29:18 +0200 |
| commit | 6ce26f3818492682a8572c895264f1e63f94b9d5 (patch) | |
| tree | d8efa80fafcc94584417c7da24f2bf99f6eb31ec /src/dynamics/rigid_body_components.rs | |
| parent | c630635e57624385123b4a0fb658018bc6fdba91 (diff) | |
| download | rapier-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.rs | 2 |
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, |
