Skip to main content

Type Alias: UpdaterFunction()

UpdaterFunction = (mobject, dt) => void

Defined in: src/core/Mobject.ts:77

Updater function type that runs every frame. Defined here (not in MobjectTypes) to reference the concrete Mobject class without introducing a circular import.

Parameters​

mobject​

Mobject

The mobject being updated

dt​

number

Delta time in seconds since last frame

Returns​

void