Not the first of it's kind but perhaps an additional gravity example?
ball pit gone wrong 😄
If you adjust to an amount that can handle with-fill, though, you could (map-indexed (fn [i ... and use i as a component for each ball, just as a start for individualizing them. Though idk if they retain the same order in your code.
And if they start out in some sort of visual order, it'd be fun to see how quickly it turns into chaos. Like, starting out as a gradient, ending up as confetti
Ah, you've got random, unconnected starting positions. Still, though 🙂
74 lines of clojure: https://github.com/benjamin-asdf/hyper-substrates/blob/main/src/demo/gravity.clj related work: https://github.com/balysv/space-clojure
Very nice!
How many objects can you chuck in there before it gets weird and/or slow?
just tried 500 was choppy, 200 still worked
I'll make a torch implementation with libpython clj, give me a moment 😛
Impressive! Do a video of one where they have individual colors so you can track them visually
Or that 😁
is an example of "data oriented" (game development) architecture
q/with-fill was too slow for 1k objects