Skip to content

Commit 0edc7d4

Browse files
committed
Actually fix "island should be awake" for good, I swear this one works
1 parent 217e11c commit 0edc7d4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • common/src/main/rust/rapier/src

common/src/main/rust/rapier/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,8 +1140,8 @@ pub extern "system" fn Java_dev_ryanhcode_sable_physics_impl_rapier_Rapier3D_wak
11401140
id: jint,
11411141
) {
11421142
let scene = get_scene_mut_ref(scene_id);
1143-
let rb = &mut scene.rigid_body_set[scene.rigid_bodies[&(id as LevelColliderID)]];
1144-
rb.wake_up(true);
1143+
let handle = scene.rigid_bodies[&(id as LevelColliderID)];
1144+
scene.island_manager.wake_up(&mut scene.rigid_body_set, handle, true);
11451145
}
11461146

11471147
#[unsafe(no_mangle)]

0 commit comments

Comments
 (0)