Skip to content

How to despawn entities safely ? #51

Closed Answered by Jondolf
Gui-Yom asked this question in Q&A
Discussion options

You must be logged in to vote

I can't reproduce the error when trying to despawn entities on contact in an example similar to the cubes example, but I removed the unwrap call to avoid panicking when the entity is missing. Could you try your example on the main branch? Specify the dependency like this:

[dependencies]
bevy_xpbd_3d = { git = "https://github.com/Jondolf/bevy_xpbd.git" } # or 2D

The fix will be in 0.2, which will release after Bevy 0.11. Let me know if it works or if there are other issues.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Gui-Yom
Comment options

@Jondolf
Comment options

@Gui-Yom
Comment options

Answer selected by Gui-Yom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
C-Bug Something isn't working
2 participants