aboutsummaryrefslogtreecommitdiff
path: root/examples3d
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2021-02-23 15:49:23 +0100
committerCrozet Sébastien <developer@crozet.re>2021-02-23 15:49:23 +0100
commitbabcab0bed23fadd23181ccc58aae34fb80d01d8 (patch)
treedcdb17f061860a93873659c55f029a8fbf5cbccc /examples3d
parentf8bf96fdc8a0cfd7324d589736d41057a6c1bfe8 (diff)
downloadrapier-babcab0bed23fadd23181ccc58aae34fb80d01d8.tar.gz
rapier-babcab0bed23fadd23181ccc58aae34fb80d01d8.tar.bz2
rapier-babcab0bed23fadd23181ccc58aae34fb80d01d8.zip
Update the testbed to use PhysicsHooks.
Diffstat (limited to 'examples3d')
-rw-r--r--examples3d/all_examples3.rs2
-rw-r--r--examples3d/damping3.rs2
2 files changed, 3 insertions, 1 deletions
diff --git a/examples3d/all_examples3.rs b/examples3d/all_examples3.rs
index 9cbf4c3..8a71665 100644
--- a/examples3d/all_examples3.rs
+++ b/examples3d/all_examples3.rs
@@ -29,6 +29,7 @@ mod heightfield3;
mod joints3;
mod keva3;
mod locked_rotations3;
+mod one_way_platforms3;
mod platform3;
mod primitives3;
mod restitution3;
@@ -83,6 +84,7 @@ pub fn main() {
("Heightfield", heightfield3::init_world),
("Joints", joints3::init_world),
("Locked rotations", locked_rotations3::init_world),
+ ("One-way platforms", one_way_platforms3::init_world),
("Platform", platform3::init_world),
("Restitution", restitution3::init_world),
("Sensor", sensor3::init_world),
diff --git a/examples3d/damping3.rs b/examples3d/damping3.rs
index 8c68d3b..3847ceb 100644
--- a/examples3d/damping3.rs
+++ b/examples3d/damping3.rs
@@ -40,6 +40,6 @@ pub fn init_world(testbed: &mut Testbed) {
/*
* Set up the testbed.
*/
- testbed.set_world_with_gravity(bodies, colliders, joints, Vector3::zeros());
+ testbed.set_world_with_params(bodies, colliders, joints, Vector3::zeros(), ());
testbed.look_at(Point3::new(2.0, 2.5, 20.0), Point3::new(2.0, 2.5, 0.0));
}