-
Notifications
You must be signed in to change notification settings - Fork 67
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
Infinite lifetime particles. #118
Comments
Also, continuous emitters should be configurable to do things like:
|
Yes to all, thanks. This is going to be a lot easier to implement after #109 and any follow up refactor moving into the direction of a VFX graph with basic building blocks. Although the emitter one is probably doable already. |
#109 just merged, and this solves a few items:
|
Add a new update modifier `AabbKillModifier` which kills all particles entering or exiting its AABB. This modifier is useful to confine the particles to a space (_e.g._ a room) and avoid leaking into adjacent areas, or ensuring no particle enter a defined space. Partially fixes #118
Add a new update modifier `AabbKillModifier` which kills all particles entering or exiting its AABB. This modifier is useful to confine the particles to a space (_e.g._ a room) and avoid leaking into adjacent areas, or ensuring no particle enter a defined space. Update the force field example to use that new `AabbKillModifier` to define an "allow" box (green) and a "forbid" box (red) demonstrating how the modifier works. Partially fixes #118
Add a new update modifier `AabbKillModifier` which kills all particles entering or exiting its AABB. This modifier is useful to confine the particles to a space (_e.g._ a room) and avoid leaking into adjacent areas, or ensuring no particle enter a defined space. Update the force field example to use that new `AabbKillModifier` to define an "allow" box (green) and a "forbid" box (red) demonstrating how the modifier works. Incidentally, this change also fixes mouse clicks in the `force_field.rs` example when the window is resized. Partially fixes #118
Add a new update modifier `AabbKillModifier` which kills all particles entering or exiting its AABB. This modifier is useful to confine the particles to a space (_e.g._ a room) and avoid leaking into adjacent areas, or ensuring no particle enter a defined space. Update the force field example to use that new `AabbKillModifier` to define an "allow" box (green) and a "forbid" box (red) demonstrating how the modifier works. Incidentally, this change also fixes mouse clicks in the `force_field.rs` example when the window is resized. Partially fixes #118
Make particle aging and reaping conditional to the presence of the `Attribute::AGE` and `Attribute::LIFETIME`, which are themselves not mandatory anymore (not added by default) but instead depend on the modifier(s) added to the `EffectAsset`. Add two new modifiers: - `SetColorModifier` to set the per-particle rendering color on spawn, to a constant value that do not vary with the age/lifetime of the particle. - `SetSizeModifier` to set the per-particle size on spawn, also not varying after spawning. This change further improves support for #118.
Make particle aging and reaping conditional to the presence of the `Attribute::AGE` and `Attribute::LIFETIME`, which are themselves not mandatory anymore (not added by default) but instead depend on the modifier(s) added to the `EffectAsset`. Add two new modifiers: - `SetColorModifier` to set the per-particle rendering color on spawn, to a constant value that do not vary with the age/lifetime of the particle. - `SetSizeModifier` to set the per-particle size on spawn, also not varying after spawning. This change further improves support for #118.
@brandon-reinhart I believe the core feature of having infinite particle and control over how their die is now available. The There's a few other secondary items there, some which are not available yet like killing particles going offscreen or replacing the oldest particle with a new one, which probably deserve their own separate issue. So I propose we close this, and can re-open individual items for anything that's still pending. |
Opened separate feature requests for the few remaining items. Closing this issue, as I think everything else is now available. |
Neat! I will check this out. |
It's not unusual to want particles with infinite lifetimes and some other criteria for their destruction.
Suggestions:
The text was updated successfully, but these errors were encountered: