Select your preferred scripting language. All code snippets will be displayed in this language.
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseLinearly 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
.