Move benchmark demos into their own directory.

This commit is contained in:
Sébastien Crozet
2020-09-06 12:16:09 +02:00
parent 3080c6e7d2
commit ff2da7fb27
44 changed files with 897 additions and 148 deletions

View File

@@ -58,9 +58,7 @@ pub fn init_world(testbed: &mut Testbed) {
* rot;
let rigid_body = RigidBodyBuilder::new_dynamic().position(position).build();
let handle = bodies.insert(rigid_body);
let collider = ColliderBuilder::cuboid(thickness, width * 2.0, width)
.density(1.0)
.build();
let collider = ColliderBuilder::cuboid(thickness, width * 2.0, width).build();
colliders.insert(collider, handle, &mut bodies);
testbed.set_body_color(handle, colors[i % 2]);
} else {