Skip to content

aninest root / Animatable / updateAnimation

updateAnimation()

ts
function updateAnimation<Animating>(anim, dt): boolean

Moves the animation forward by a certain amount of time.

Type Parameters

Animating extends RecursiveAnimatable<unknown>

Parameters

anim: Animation<Animating>

The animation object

dt: number

The timestep to increment the animation by. Must be positive. If negative or zero and the interpolation function is not NO_INTERP then no-op.

Returns

boolean

true if the animation needs to be updated again

Defined in

Animate/Animatable.ts:424