aboutsummaryrefslogtreecommitdiff
path: root/examples3d/kinematic3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples3d/kinematic3.rs')
-rw-r--r--examples3d/kinematic3.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples3d/kinematic3.rs b/examples3d/kinematic3.rs
index d6f2014..a9adc8c 100644
--- a/examples3d/kinematic3.rs
+++ b/examples3d/kinematic3.rs
@@ -66,8 +66,8 @@ pub fn init_world(testbed: &mut Testbed) {
/*
* Setup a callback to control the platform.
*/
- testbed.add_callback(move |bodies, _, _, _, time| {
- let mut platform = bodies.get_mut(platform_handle).unwrap();
+ testbed.add_callback(move |_, physics, _, _, time| {
+ let mut platform = physics.bodies.get_mut(platform_handle).unwrap();
let mut next_pos = platform.position;
let dt = 0.016;