From ff2da7fb27f0ea7a15b1dc6b6daf763fe7faf13b Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Sun, 6 Sep 2020 12:16:09 +0200 Subject: Move benchmark demos into their own directory. --- examples2d/pyramid2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples2d/pyramid2.rs') diff --git a/examples2d/pyramid2.rs b/examples2d/pyramid2.rs index 4d6fe07..e6a715b 100644 --- a/examples2d/pyramid2.rs +++ b/examples2d/pyramid2.rs @@ -42,7 +42,7 @@ pub fn init_world(testbed: &mut Testbed) { // Build the rigid body. let rigid_body = RigidBodyBuilder::new_dynamic().translation(x, y).build(); let handle = bodies.insert(rigid_body); - let collider = ColliderBuilder::cuboid(rad, rad).density(1.0).build(); + let collider = ColliderBuilder::cuboid(rad, rad).build(); colliders.insert(collider, handle, &mut bodies); } } -- cgit From e7466e2f6923d24e987a34f8ebaf839346af8d4e Mon Sep 17 00:00:00 2001 From: Crozet Sébastien Date: Mon, 28 Sep 2020 10:19:49 +0200 Subject: Move 2D benchmarks into their own directory/crate. --- examples2d/pyramid2.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples2d/pyramid2.rs') diff --git a/examples2d/pyramid2.rs b/examples2d/pyramid2.rs index e6a715b..689e9c0 100644 --- a/examples2d/pyramid2.rs +++ b/examples2d/pyramid2.rs @@ -14,7 +14,7 @@ pub fn init_world(testbed: &mut Testbed) { /* * Ground */ - let ground_size = 100.0; + let ground_size = 10.0; let ground_thickness = 1.0; let rigid_body = RigidBodyBuilder::new_static().build(); @@ -25,7 +25,7 @@ pub fn init_world(testbed: &mut Testbed) { /* * Create the cubes */ - let num = 100; + let num = 10; let rad = 0.5; let shift = rad * 2.0; @@ -51,7 +51,7 @@ pub fn init_world(testbed: &mut Testbed) { * Set up the testbed. */ testbed.set_world(bodies, colliders, joints); - testbed.look_at(Point2::new(0.0, 2.5), 5.0); + testbed.look_at(Point2::new(0.0, 2.5), 20.0); } fn main() { -- cgit