Skip to content

Latest commit

 

History

History
21 lines (10 loc) · 702 Bytes

README.md

File metadata and controls

21 lines (10 loc) · 702 Bytes

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