MotionScript

@motion-script/core


@motion-script/core / lerpEuler3

Function: lerpEuler3()

lerpEuler3(from, to, t): Euler3

Defined in: render3d/vector3.ts:71

Component-wise lerp of two Euler rotations, in degrees. order is discrete, so it snaps at the halfway point rather than blending.

Euler interpolation gimbals near the poles and takes the "wrong" path for rotations past 180°. For a tumble, hold a Quaternion signal and use slerpQuaternion instead.

Parameters

from

Euler3

to

Euler3

t

number

Returns

Euler3