You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm making a game and trying to reset the world between matches. When I used world.reset(), all my queries don't seem to get the memo and keep iterating over non-existing entities.
Try out the example below to see what I mean. You can add entities with a button and see their count increase in the console. When using world.reset() you can see that the count doesn't decrease at all. You can see how the button that destroys all entities doesn't have this issue.
For now, I've managed to bypass the issue by destroying all my entities manually.
Other than that though, I've really enjoyed using this library! Thanks for the great work on it :)
I'm making a game and trying to reset the world between matches. When I used
world.reset()
, all my queries don't seem to get the memo and keep iterating over non-existing entities.Try out the example below to see what I mean. You can add entities with a button and see their count increase in the console. When using
world.reset()
you can see that the count doesn't decrease at all. You can see how the button that destroys all entities doesn't have this issue.For now, I've managed to bypass the issue by destroying all my entities manually.
Other than that though, I've really enjoyed using this library! Thanks for the great work on it :)
Example
The text was updated successfully, but these errors were encountered: