From e6842e44159d7cc9b1c32dd2baae4df164fa81d2 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 16 Mar 2026 20:59:04 +0200 Subject: feat: Implement tree rotation animation --- AnimationMove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AnimationMove.c') 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))); -- cgit v1.2.3