From 5ce36065829cdc23334bbb6ca6c0d83f7de1ece8 Mon Sep 17 00:00:00 2001 From: Crozet Sébastien Date: Thu, 19 Nov 2020 18:09:55 +0100 Subject: Add explicit wake_up parameter to method setting the position and velocity of a rigid-body. --- examples2d/platform2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples2d/platform2.rs') diff --git a/examples2d/platform2.rs b/examples2d/platform2.rs index fd836a3..3f55cb6 100644 --- a/examples2d/platform2.rs +++ b/examples2d/platform2.rs @@ -62,7 +62,7 @@ pub fn init_world(testbed: &mut Testbed) { */ testbed.add_callback(move |_, physics, _, _, time| { let mut platform = physics.bodies.get_mut(platform_handle).unwrap(); - let mut next_pos = platform.position; + let mut next_pos = *platform.position(); let dt = 0.016; next_pos.translation.vector.y += (time * 5.0).sin() * dt; -- cgit