this post was submitted on 21 Feb 2026
31 points (100.0% liked)
Comradeship // Freechat
2715 readers
72 users here now
Talk about whatever, respecting the rules established by Lemmygrad. Failing to comply with the rules will grant you a few warnings, insisting on breaking them will grant you a beautiful shiny banwall.
A community for comrades to chat and talk about whatever doesn't fit other communities
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Currently programming my "cellular automata with n-body gravity" in rust.
The white gradient is formed by the "gravitons", the tan stuff is sand. Right now I've got the gravitons reproducing and passing directional data between each other, what I'm trying to wrap my head around is rotating indices for each simulated cell so that i can make them dynamically "fall" towards the nearest gravity source, rather than always falling towards the bottom of the screen as they do now.