aboutsummaryrefslogtreecommitdiff
path: root/examples3d/fountain3.rs
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2021-03-13 18:00:58 +0100
committerCrozet Sébastien <developer@crozet.re>2021-03-13 18:00:58 +0100
commit3a1502be74901f3df96a05a7d479f15bd4f8b507 (patch)
treebfa1ceb9664ddb853e94e9b1983388e4a2195faf /examples3d/fountain3.rs
parenta967ace7d426eea11b4132328574cc3a48790ea5 (diff)
downloadrapier-3a1502be74901f3df96a05a7d479f15bd4f8b507.tar.gz
rapier-3a1502be74901f3df96a05a7d479f15bd4f8b507.tar.bz2
rapier-3a1502be74901f3df96a05a7d479f15bd4f8b507.zip
First complete implementation of the hierarchical SAP.
Diffstat (limited to 'examples3d/fountain3.rs')
-rw-r--r--examples3d/fountain3.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples3d/fountain3.rs b/examples3d/fountain3.rs
index caaa21b..e39ff2a 100644
--- a/examples3d/fountain3.rs
+++ b/examples3d/fountain3.rs
@@ -80,6 +80,10 @@ pub fn init_world(testbed: &mut Testbed) {
* Set up the testbed.
*/
testbed.set_world(bodies, colliders, joints);
+ testbed
+ .physics_state_mut()
+ .integration_parameters
+ .velocity_based_erp = 0.2;
testbed.look_at(Point3::new(-30.0, 4.0, -30.0), Point3::new(0.0, 1.0, 0.0));
}