Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Quaternion.Lerp

public static Quaternion Lerp(Quaternion a, Quaternion b, float t);

Description

Interpolates between a and b by t and normalizes the result afterwards. The parameter t is clamped to the range [0, 1].

This is faster than Slerp but looks worse if the rotations are far apart.

no example available in C#

See Also: Slerp. LerpUnclamped.

Did you find this page useful? Please give it a rating: