Hey, folks! Thanks for your help.
I’ve been playing around with Vector3.Lerp, but I don’t understand why what I’m trying isn’t working. Basically, I’ve got a cube whose scale is (1,1,.1), and the code I’ve got here isn’t working. Any advice or code examples? Thanks a bunch!
if(shrink)
{
if (t < 1.0)
{
t += shrinkspeed;
transform.localScale = Vector3.Lerp(Vector3.zero,startingScale, t);
}
}