aboutsummaryrefslogtreecommitdiff
path: root/examples3d
diff options
context:
space:
mode:
authorSébastien Crozet <sebcrozet@dimforge.com>2024-04-21 23:42:21 +0200
committerSébastien Crozet <sebastien@crozet.re>2024-04-30 23:10:46 +0200
commit6635d49c8bdaca13011a888d3901436eb79c599e (patch)
treece6d3ded0025c9107544275b109f0570c0d54daa /examples3d
parent33dd38016ccf3c4ad8e874d75e51fbc20dd060da (diff)
downloadrapier-6635d49c8bdaca13011a888d3901436eb79c599e.tar.gz
rapier-6635d49c8bdaca13011a888d3901436eb79c599e.tar.bz2
rapier-6635d49c8bdaca13011a888d3901436eb79c599e.zip
feat: add configurable distance cap to soft-ccd
Diffstat (limited to 'examples3d')
-rw-r--r--examples3d/debug_thin_cube_on_mesh3.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples3d/debug_thin_cube_on_mesh3.rs b/examples3d/debug_thin_cube_on_mesh3.rs
index 801e0cd..edf6664 100644
--- a/examples3d/debug_thin_cube_on_mesh3.rs
+++ b/examples3d/debug_thin_cube_on_mesh3.rs
@@ -46,9 +46,9 @@ pub fn init_world(testbed: &mut Testbed) {
.translation(vector![0.0, 5.0, 0.0])
.rotation(vector![0.5, 0.0, 0.5])
.linvel(vector![0.0, -100.0, 0.0])
- .soft_ccd_enabled(true);
+ .soft_ccd_prediction(10.0);
let handle = bodies.insert(rigid_body);
- let collider = ColliderBuilder::cuboid(0.01, 0.015, 5.0);
+ let collider = ColliderBuilder::cuboid(5.0, 0.015, 5.0);
colliders.insert_with_parent(collider, handle, &mut bodies);
/*