Move 2D benchmarks into their own directory/crate.

This commit is contained in:
Crozet Sébastien
2020-09-28 10:19:49 +02:00
parent 0829ed10ac
commit e7466e2f69
16 changed files with 256 additions and 30 deletions

View File

@@ -11,18 +11,12 @@ use rapier_testbed2d::Testbed;
use std::cmp::Ordering;
mod add_remove2;
mod balls2;
mod boxes2;
mod capsules2;
mod debug_box_ball2;
mod heightfield2;
mod joints2;
mod kinematic2;
mod platform2;
mod pyramid2;
mod sensor2;
mod stress_joint_ball2;
mod stress_joint_fixed2;
mod stress_joint_prismatic2;
fn demo_name_from_command_line() -> Option<String> {
let mut args = std::env::args();
@@ -58,21 +52,12 @@ pub fn main() {
let mut builders: Vec<(_, fn(&mut Testbed))> = vec![
("Add remove", add_remove2::init_world),
("Balls", balls2::init_world),
("Boxes", boxes2::init_world),
("Capsules", capsules2::init_world),
("Heightfield", heightfield2::init_world),
("Joints", joints2::init_world),
("Kinematic", kinematic2::init_world),
("Platform", platform2::init_world),
("Pyramid", pyramid2::init_world),
("Sensor", sensor2::init_world),
("(Debug) box ball", debug_box_ball2::init_world),
("(Stress test) joint ball", stress_joint_ball2::init_world),
("(Stress test) joint fixed", stress_joint_fixed2::init_world),
(
"(Stress test) joint prismatic",
stress_joint_prismatic2::init_world,
),
];
// Lexicographic sort, with stress tests moved at the end of the list.