Fix BroadPhase proxy handle recycling causing a crash.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user