remove redundant time :f32 from harness callbacks. it can be access via run_state.time

This commit is contained in:
rezural
2020-12-31 15:23:25 +11:00
parent 1ac2d03fea
commit 6f508e5d04
10 changed files with 11 additions and 12 deletions

View File

@@ -71,7 +71,7 @@ pub fn init_world(testbed: &mut Testbed) {
// Callback that will be executed on the main loop to handle proximities.
testbed
.harness_mut()
.add_callback(move |physics, events, _, _| {
.add_callback(move |physics, events, _| {
while let Ok(prox) = events.proximity_events.try_recv() {
let color = match prox.new_status {
Proximity::WithinMargin | Proximity::Intersecting => Point3::new(1.0, 1.0, 0.0),