文档

Unity Engine

Unity Engine

LerpRotation

Calculate the normalized linear interpolation of this rotation and the specified rotation using the specified interval.
阅读时间1 分钟最后更新于 1 个月前

Definition

LerpRotation(PhysicsRotate, float)

Calculate the normalized linear interpolation of this rotation and the specified rotation using the specified interval.
public readonly PhysicsRotate LerpRotation(PhysicsRotate rotation, float interval)

Parameters

The rotation to lerp with against the current rotation.

interval

The lerp interval, typically in the range [0, 1]. A value outside of this range performs normalized linear extrapolation.

Returns

Type

Description

PhysicsRotateThe normalized linear interpolation/extrapolation.

LerpRotation(PhysicsRotate, PhysicsRotate, float)

Calculate the normalized linear interpolation between two rotations using the specified fraction.
public static PhysicsRotate LerpRotation(PhysicsRotate rotationA, PhysicsRotate rotationB, float interval)

Parameters

rotationA

The rotation to lerp from.

rotationB

The rotation to lerp to.

interval

The lerp interval, typically in the range [0, 1]. A value outside of this range performs normalized linear extrapolation.

Returns

Type

Description

PhysicsRotateThe normalized linear interpolation/extrapolation.