News for hackers. Stuff that matters.
Re:Build a simple 2D physics engine for JavaScript games (2012) by breck on Wednesday August 24, 2022 @02:18PM (#32583585)
Interesting! This makes sense to me.

I'm new to physics engines—I just started figuring out how to upgrade my simple grid cellular automata engine to a 2D engine for my toy sim tool (https://github.com/breck7/simoji) —and have been surprised by existing implementations, because it just seems not how the universe actually computes. I had not seen PBD before and it seems to be a closer model.

Re:Build a simple 2D physics engine for JavaScript games (2012) by naillo on Wednesday August 24, 2022 @04:35PM (#32585385)
You should check out taichi: https://github.com/taichi-dev/taichi They have a ton of great demos for doing physics but check out this example in particular for something related to your project: https://github.com/taichi-dev/quantaichi#game-of-life-gol. (Taichi also makes it super easy to write things for the GPU and the kernels are differentiable :).)