This is a flying spinning donut built using Jetpack Compose.
The basic steps are :
- Create a circle of radius R1 centered at R2
- Create a donut (torus)
- Spin the donut (x and z axis)
- Project donut onto 2D screen
Illumination and performance improvements are still in progress. (PRs are welcome too)
I recommend you check out Andy's blog on the mathematics behind a spinning torus.