diff options
| author | Sébastien Crozet <sebcrozet@dimforge.com> | 2024-04-21 23:42:21 +0200 |
|---|---|---|
| committer | Sébastien Crozet <sebastien@crozet.re> | 2024-04-30 23:10:46 +0200 |
| commit | 6635d49c8bdaca13011a888d3901436eb79c599e (patch) | |
| tree | ce6d3ded0025c9107544275b109f0570c0d54daa /src/dynamics/rigid_body_components.rs | |
| parent | 33dd38016ccf3c4ad8e874d75e51fbc20dd060da (diff) | |
| download | rapier-6635d49c8bdaca13011a888d3901436eb79c599e.tar.gz rapier-6635d49c8bdaca13011a888d3901436eb79c599e.tar.bz2 rapier-6635d49c8bdaca13011a888d3901436eb79c599e.zip | |
feat: add configurable distance cap to soft-ccd
Diffstat (limited to 'src/dynamics/rigid_body_components.rs')
| -rw-r--r-- | src/dynamics/rigid_body_components.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dynamics/rigid_body_components.rs b/src/dynamics/rigid_body_components.rs index 3eea73c..998253c 100644 --- a/src/dynamics/rigid_body_components.rs +++ b/src/dynamics/rigid_body_components.rs @@ -821,8 +821,8 @@ pub struct RigidBodyCcd { pub ccd_active: bool, /// Is CCD enabled for this rigid-body? pub ccd_enabled: bool, - /// Is soft-CCD enabled for this rigid-body? - pub soft_ccd_enabled: bool, + /// The soft-CCD prediction distance for this rigid-body. + pub soft_ccd_prediction: Real, } impl Default for RigidBodyCcd { @@ -832,7 +832,7 @@ impl Default for RigidBodyCcd { ccd_max_dist: 0.0, ccd_active: false, ccd_enabled: false, - soft_ccd_enabled: false, + soft_ccd_prediction: 0.0, } } } |
