feat: add soft (solver-based) ccd implementation

This commit is contained in:
Sébastien Crozet
2024-04-14 15:54:39 +02:00
committed by Sébastien Crozet
parent 3ddf2441ea
commit 404e032433
7 changed files with 89 additions and 9 deletions

View File

@@ -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,
}
}
}