From 6635d49c8bdaca13011a888d3901436eb79c599e Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Sun, 21 Apr 2024 23:42:21 +0200 Subject: feat: add configurable distance cap to soft-ccd --- src/dynamics/rigid_body_components.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/dynamics/rigid_body_components.rs') 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, } } } -- cgit