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

Add particles #35

Closed
Tracked by #33
Zac8668 opened this issue Jan 5, 2024 · 2 comments
Closed
Tracked by #33

Add particles #35

Zac8668 opened this issue Jan 5, 2024 · 2 comments

Comments

@Zac8668
Copy link
Collaborator

Zac8668 commented Jan 5, 2024

Particles are really helpful, and game changer for visuals.

@Zac8668 Zac8668 mentioned this issue Jan 5, 2024
6 tasks
@erlend-sh
Copy link
Contributor

Particles can mean different things in a falling-sand game, so are we talking about (1) regular, shader-based particles with no mass, or (2) actual atoms with inherent light sources?

I suppose there might be a mix of both. Related:

For atom-less particles, there seems to be two reasonably mature options if we wanna go with a pre-made solution:

bevy_hanabi is a likely candidate. Its WASM support is still in progress, but it could just be toggled off in the browser until it works well: djeedai/bevy_hanabi#41

The alternative is 2D-only and already WASM-friendly, which does seem promising: https://github.com/abnormalbrain/bevy_particle_systems

@Zac8668
Copy link
Collaborator Author

Zac8668 commented Jan 5, 2024

Particles are for sure ambiguous.
What I'm implementing right now is a simple entity that is visually equal to the normal atoms, it updates itself and when it collides with a normal atom it puts itself back on the normal atom simulation.

From what I'm testing bevy is dealing with them pretty well without a GPU approach, but we would probably want to speed that up in the future if that's possible.

We are probably gonna use them for water splashing, and it will be a game changer for the player tool, with them we can animate them getting into the tool, and some better throwing, without them clumping into each other.

Edit: Wow bevy_hanabi is pretty amazing! We are gonna for sure use it in another occasions tho, like when we add explosions.

@Zac8668 Zac8668 closed this as completed Jan 14, 2024
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

No branches or pull requests

2 participants