Hi there, I’m a little stuck on a problem where I need to scale an object while it is going up, and then return the scale as it falls.
I figured I’d lerp for the transition. I’m just stuck on how to get the duration of the jump up to its peak acceleration point and then do the opposite and convert the peak to the ground plane in time.
Pseudo:
Vector3.Lerp(originalScale, smallScale, TIME);
Vector3.Lerp(smallScale, originalScale, TIME);
Jump is done via
rb.AddForce(Vector3.up * forceValue), ForceMode.Impulse);
Thanks for your time.