Documentation

Unity Engine


Unity Engine


LerpUnclamped

Interpolates between a and b by t and normalizes the result afterwards. The parameter t is not clamped.
Read time 1 minuteLast updated a month ago

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.