Replies: 4 comments
-
Have solution? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Would be interested too... |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, ValueAnimator.ofFloat(0f, 360f).apply {
setDuration(10000.0f)
repeatCount = INFINITE
addUpdateListener {
val value = it.animatedValue as Float
node.rotation = Rotation(y = -value)
}
}.start() |
Beta Was this translation helpful? Give feedback.
0 replies
-
Linked ticket: #534 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've ran into a problem animating Node transforms.
Transforms without animations work well e.g.
node.transform(position, rotation, scale)
and even smooth transformation are fine e.g.Even tho it is nowhere documented what the "smoothSpeed" is referencing to. Is is seconds? It does not seem to be.
What I am trying to achieve is animating a node and also be able to stop the animation if it is not finished yet.
I came across
in Node.kt but I have no clue how to use it.
node.animateRotations(rotation).start()
does nothing.How can I create a node animation so it is cancelable?
Beta Was this translation helpful? Give feedback.
All reactions