Skip to content

JaimeToca/DonutJetpackCompose

Repository files navigation

DonutJetpackCompose

This is a flying spinning donut built using Jetpack Compose.

The basic steps are :

  1. Create a circle of radius R1 centered at R2
  2. Create a donut (torus)
  3. Spin the donut (x and z axis)
  4. 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.

RotationZX2.mp4

About

Flying spinning donut using Jetpack Compose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages