-
Starting ease at point in time
Hi,
I’m trying to start an ease animation using an objects rotation as a trigger and I can’t seem to get it to work. I’ve been trying something like this:
The problem I’m running in to is how to define the start time of the ease. I’ve tried playing around with while loops but just can’t quite get it. I’m missing something. Any help would be greatly appreciated. Thanks.
rot = transform.rotation;
if (rot >= -6 && rot <= 6) {
scl = ease(time,time,time+1,100,175);} else {scl = value[0];
}
[scl,scl]