src.transform /= 1.1
//and
src.transform *= 1.1
Here's where I'm trying to re-apply the scale with zoom.
M.Scale(0, 0.5)
animate(src, transform = turn(M, degrees) / zoom, time = 5, easing = BACK_EASING)
ID:2010681
Jan 2 2016, 12:41 pm
|
|
I'm using one of these two lines to zoom objects in and out. What's the right way to store my "zoom state" so I can perform other animations on the object without losing the current scale.
src.transform /= 1.1 Here's where I'm trying to re-apply the scale with zoom. M.Scale(0, 0.5) |
Jan 2 2016, 2:46 pm (Edited on Jan 2 2016, 7:20 pm)
|
|
You can store the current scale in a matrix. It should also be noted that you can add, subtract, divide, and multiply matrices together, which may help here.
|