Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds despawn_particles_with_system setting and fixes despawn behavior #21

Merged
merged 3 commits into from
Nov 23, 2022

Conversation

abnormalbrain
Copy link
Owner

Introduces the despawn_particles_with_system field on the ParticleSystem which determines particle behavior when the system no longer exists.

This fixes #20 which was introduced in #17 in the upgrade to Bevy 0.9.

In order to facilitate the particles finishing out their lifetime correctly without the system, more fields that vary over time are copied to the particle itself on spawn, so that a lookup of the spawning ParticleSystem is not necessary.


Closes #20

@abnormalbrain abnormalbrain merged commit d578bc0 into main Nov 23, 2022
@abnormalbrain abnormalbrain deleted the despawn-behavior branch November 23, 2022 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Despawning a particle system doesn't despawn the particles
1 participant