diff options
| author | Syndamia <kamen@syndamia.com> | 2026-03-16 20:59:04 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2026-03-16 20:59:04 +0200 |
| commit | e6842e44159d7cc9b1c32dd2baae4df164fa81d2 (patch) | |
| tree | a8678020b6185311ca1c0c40b7e952c43af5d95d /AnimationMove.c | |
| parent | 7731ed11aee7ad4f9c634ba38992fb282b777d5a (diff) | |
| download | ppm_graphics-e6842e44159d7cc9b1c32dd2baae4df164fa81d2.tar ppm_graphics-e6842e44159d7cc9b1c32dd2baae4df164fa81d2.tar.gz ppm_graphics-e6842e44159d7cc9b1c32dd2baae4df164fa81d2.zip | |
feat: Implement tree rotation animation
Diffstat (limited to 'AnimationMove.c')
| -rw-r--r-- | AnimationMove.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AnimationMove.c b/AnimationMove.c index 3881bf1..696150c 100644 --- a/AnimationMove.c +++ b/AnimationMove.c @@ -23,7 +23,7 @@ AM_Spin(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* p double radius = sqrt(r * r + c * c); double phi = atan2(c, r); - phi += ms.theta * frameIndex; + phi += ms.theta + ms.dTheta * frameIndex; r = (ms.centerRow + (i32)(radius * cos(phi))); c = (ms.centerCol + (i32)(radius * sin(phi))); |
