From 404e0324334acb2f7d2cb3b21b5da2e362926dd2 Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Sun, 14 Apr 2024 15:54:39 +0200 Subject: feat: add soft (solver-based) ccd implementation --- src/dynamics/rigid_body_components.rs | 3 +++ 1 file changed, 3 insertions(+) (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 2291742..3eea73c 100644 --- a/src/dynamics/rigid_body_components.rs +++ b/src/dynamics/rigid_body_components.rs @@ -821,6 +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, } impl Default for RigidBodyCcd { @@ -830,6 +832,7 @@ impl Default for RigidBodyCcd { ccd_max_dist: 0.0, ccd_active: false, ccd_enabled: false, + soft_ccd_enabled: false, } } } -- cgit