Marcin Wisniowski
05/29/2023, 3:49 AManimateFloatAsState()
. The problem is that as my target angle moves past 360° back into 0°, or decreases past 0° into 360°, the animation jumps all the way around. I need a change from 358° to 2° to animate through just 4 values, not go all the way back through 356 values. Is there a way to make the animation aware of the circular nature of my numbers?Tuna
05/29/2023, 3:52 AMromainguy
05/29/2023, 3:53 AManimateFloatAsState()
?Marcin Wisniowski
05/29/2023, 3:56 AMval animatedBearing by animateFloatAsState(targetValue = bearing)
This works fine except for the jumps at 0°/360°Marcin Wisniowski
05/29/2023, 3:56 AMromainguy
05/29/2023, 3:59 AMromainguy
05/29/2023, 4:02 AMMarcin Wisniowski
05/29/2023, 4:06 AM