Skip to content

Commit

Permalink
run component example after syncBackend to have correct state at the …
Browse files Browse the repository at this point in the history
…first frame.
  • Loading branch information
Vrixyz committed Dec 9, 2024
1 parent fc82f9b commit 6950734
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bevy_rapier3d/examples/rapier_context_component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ fn display_nb_colliders(
) {
let nb_colliders = query_context.single().colliders.len();
println!("There are {nb_colliders} colliders.");
if nb_colliders > 0 {
exit.send(AppExit::Success);
}
assert!(nb_colliders > 0);
exit.send(AppExit::Success);
}

pub fn setup_physics(mut commands: Commands) {
Expand Down

0 comments on commit 6950734

Please sign in to comment.