Is there an easy way to smoothen my 2D Vector? Currently, only Vector3.Lerp works...
asked Jan 26 '10 at 11:04 AM
Sure. In essence, a "Lerp" is nothing more than:
In Unity, the Lerp functions also clamp 't', ensuring the range doesn't go below zero, or above one. So to implement a "Lerp" function for Vector2's yourself, it can just be a 2-line function:
Although it does seem like a bit of an oversight that it wasn't included in the Vector2 class.
answered Jan 26 '10 at 11:11 AM
For the record, Vector2.Lerp does exist in Unity 3.
answered Nov 06 '12 at 07:39 PM