CodingTrain / Suggestion-Box

A repo to track ideas for topics
571 stars 86 forks source link

Snow Globe #1152

Open tjkendon opened 5 years ago

tjkendon commented 5 years ago

Have glitter particles which follow physics to settle to the bottom of a globe and then "shake them" to give them some up force so they can fall back again.

(Kind of the #10 Fireworks challenge, but with reusable particles and less exploding.)

shiffman commented 5 years ago

Oh I love this idea! Should I bother with implementing something fancy to have them settle on top of each other? Or maybe I can make it work nicely by having enough particles and having them all settle at a random distance within a small range from the bottom of the canvas.

Abdur-rahmaanJ commented 5 years ago

stacked balls / billard logic works here or not?

On Wed, 19 Dec 2018, 21:15 Tyson Kendon <notifications@github.com wrote:

Have glitter particles which follow physics to settle to the bottom of a globe and then "shake them" to give them some up force so they can fall back again.

(Kind of the #10 https://github.com/CodingTrain/Rainbow-Topics/issues/10 Fireworks challenge, but with reusable particles and less exploding.)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CodingTrain/Rainbow-Topics/issues/1152, or mute the thread https://github.com/notifications/unsubscribe-auth/AVlRHMePdSIg2xfntCQKncrN9yC6nc6vks5u6nQwgaJpZM4ZarCi .

shiffman commented 5 years ago

@Abdur-rahmaanJ yes! Just trying to keep things very simple and avoid the additional complexity of collision detection (which would also be very slow for many particles)

tjkendon commented 5 years ago

I think my vote is for the random offset, at least for a first pass. Maybe a normal distribution so they sit a little deeper in the middle? It wouldn't actually change the density but might be an interesting effect.