rework some threading code with the ui

This commit is contained in:
rezural
2020-12-24 21:42:46 +11:00
parent 31032ab969
commit 5fce09cb52
3 changed files with 12 additions and 7 deletions

View File

@@ -115,7 +115,6 @@ pub struct TestbedState {
pub selected_example: usize,
pub selected_backend: usize,
pub physx_use_two_friction_directions: bool,
pub num_threads: usize,
pub snapshot: Option<PhysicsSnapshot>,
}
@@ -180,7 +179,6 @@ impl Testbed {
selected_example: 0,
selected_backend: RAPIER_BACKEND,
physx_use_two_friction_directions: true,
num_threads,
};
let harness = Harness::new_empty();
@@ -1027,6 +1025,7 @@ impl State for Testbed {
window,
&mut self.harness.physics.integration_parameters,
&mut self.state,
&mut self.harness.state
);
}