Skip to content

Removing particles #2

Closed
Closed
@stnbu

Description

@stnbu

I'm working on a silly game thing using Particular and having a great time. Thanks for the cool toy tool.

In bevy, I wanted to be able to detect a collision and "merge" the particles (think of two planets colliding and forming a new bigger one, but without all the ejecta and excitement).

So it would be great to be able to delete particles within a bevy system. I can already add them. Would it be a problem to allow for deletion?

I see that in your demo you rebuild the whole particle set in the PreUpdate stage. Should I consider doing something similar?

I'd be happy to work on a PR for this. I wonder if it would make sense for ParticleSet also to be implemented as a trait...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions