This reminded me of another attempt, but in Minetest:
- https://youtu.be/ztAg643gJBA?si=8vDgg0rFCOj9I7no
This person has another, more technical video where they talk about the math behind it btw