https://kotlinlang.org logo
#compose
Title
# compose
l

Loney Chou

08/29/2022, 4:04 PM
Hello! I want to make a decay animation whose velocity can be changed by user input (say every time user press a button the velocity goes 50f higher from current velocity). How to do that?
z

Zach Klippenstein (he/him) [MOD]

08/29/2022, 8:34 PM
Create an
AnimationState
, then to interrupt the animation cancel the coroutine,
copy
the animation state to pass in a new velocity vector, and launch another animation
9 Views