Vector3.Lerpstatic function Lerp (from : Vector3, to : Vector3, t : float) : Vector3DescriptionLinearly interpolates between two vectors. Interpolates between from and to by amount t. t is clamped between [0...1]. When t = 0 returns from. When t = 1 returns to. When t = 0.5 returns the average of from and to.
JavaScript
// Animates the position to move from start to end within one second using UnityEngine; import UnityEngine Another Example
JavaScript
// Follows the target position like with a spring using UnityEngine; import UnityEngine |
