I’m trying to achieve a growing effect for meshes. The mesh would having a starting scale, then gradually move toward a larger scale over time. I searched the documentation and forum, but I didn’t find any examples of this.
Any suggestions or recommendations would be greatly appreciated!
Yep, this seems like the right approach, but I’m not exactly sure how to apply it to meshes (I didn’t see any mesh scaling in the lerpToRef examples ).
For example, if I wanted to scale “meshName” from 0.4 to 0.8, would this be somewhat close?
Clamping amount to 1, as everything above will start extrapolating the vector.
Another way of doing it would be: https://playground.babylonjs.com/#ERHH6I#1
This way you don’t have to keep track of the amount, as you interpolate from the Current scaling vector. This results in a noticeable slowdown due to the distance getting smaller while having a fixed interpolation-amount.