Add explicit wake_up parameter to method setting the position and velocity of a rigid-body.
This commit is contained in:
@@ -72,7 +72,7 @@ pub fn init_world(testbed: &mut Testbed) {
|
||||
}
|
||||
|
||||
if let Some(mut platform) = physics.bodies.get_mut(platform_handle) {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user