-
linear, time expression
Hi all! Can you please advise if it’s possible to adjust something in the expression? The code is simplified.
t = transform.yPosition;
if (a > b) {
t = linear(time, 0, 3, value, value);
}
t;
I need the position to smoothly transition to another, and this seems like a working approach. The issue is that I need the animation conditions to start immediately after becoming true. Currently, it runs from 0 to 3 seconds. Is there a way to tie the animation to the condition so that it starts from the beginning?
Meaning something like this
t = transform.yPosition;
if (a > b) {
t = linear(time,”a > b = true”, “a > b+3 sec”, value, value);
}
t;