← back

live · 2023-09 → 2024-03

Gravitational field-line simulator

A real-time gravitational field-line simulator. Click to spawn planets, scroll to zoom, watch Bezier-smoothed field lines respond. The first sim I shipped, made in school. Still works.

Sole developer
live · unity play open standalone ↗

I’d seen plenty of field-line plots in textbooks. They were always piecewise — straight little segments approximating a curve. I wanted lines that were actually smooth, that didn’t kink visibly when you traced them out from the source.

So I sampled the field on a 2D grid, then ran Bezier interpolation through the points to draw each line. The result is what you can play with right now: spawn masses with S, delete with D, click to read field strength at the cursor, +/ to scale a planet’s mass by 2× or ½×, scroll to zoom. Works in your browser, no install.

It’s the first sim I shipped — made it in school, polished and put on Unity Play in late 2023. It’s still up. I plan to ship a quantum-mechanics potential-well simulator next, but this one stays as the origin point. Physics curiosity that turned into code that other people can run is the whole reason I’m doing what I’m doing.