文档

Unity Engine

Unity Engine

LerpUnclamped

Interpolates between a and b by t and normalizes the result afterwards. The parameter t is not clamped.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

LerpUnclamped(Quaternion, Quaternion, float)

Interpolates between
a
and
b
by
t
and normalizes the result afterwards. The parameter
t
is not clamped.
public static Quaternion LerpUnclamped(Quaternion a, Quaternion b, float t)

Parameters

Returns

Type

Description

Quaternion

Remarks

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

LerpUnclamped(Quaternion, Quaternion, float)

Interpolates between
a
and
b
by
t
and normalizes the result afterwards. The parameter
t
is not clamped.
public static Quaternion LerpUnclamped(in Quaternion a, in Quaternion b, float t)

Parameters

Returns

Type

Description

Quaternion

Remarks

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