feat(rapier_testbed): autosave testbed configuration + add support for per-example settings (#799)

* feat(rapier_testbed): autosave testbed configuration + add support for per-example parameters

* feat(rapier_testbed): also save the camera position

* feat(rapier_testbed): improve ergonomics of example-specific settings

* chore: cargo fmt

* chore(rapier_testbed): small UI ergonomics improvement

* chore(rapier_testbed): clippy fixes
This commit is contained in:
Sébastien Crozet
2025-02-21 17:52:46 +01:00
committed by GitHub
parent bf8e48e920
commit 5ca6ae9106
23 changed files with 358 additions and 195 deletions

View File

@@ -84,12 +84,12 @@ pub fn main() {
.iter()
.position(|builder| builder.0.to_camel_case().as_str() == demo.as_str())
{
TestbedApp::from_builders(0, vec![builders[i]]).run()
TestbedApp::from_builders(vec![builders[i]]).run()
} else {
eprintln!("Invalid example to run provided: '{}'", demo);
}
}
Command::RunAll => TestbedApp::from_builders(0, builders).run(),
Command::RunAll => TestbedApp::from_builders(builders).run(),
Command::List => {
for builder in &builders {
println!("{}", builder.0.to_camel_case())