Skip to content

Animator

J.I. /podhead edited this page Feb 3, 2025 · 1 revision

Animator

Our animator i an instance that represents a worker thread and a registry, or database of values that are required to animate stuff.

  • most of that shit is stored carefully using Typed arrays and Map datatypes.
  • you can call animator.init if you wanna update th worker with shit that is stored on the main thread
    • you can actually do this whenever you like, however this will cause overhead, cause you are copieng shit over to the worker

what is this thing doing?

  • our bro here represents a single thread that is holding the data for our animation shit
  • its the controller to interact with animations (start, stop, call worker functions...)
  • he also serves as an anchor point to interact with the worker
  • you can create, control and edit animations

what kind of shit can this thing spawn?

  • basic lerp animations
  • matrix lerp animations
  • lambda calls (you can call them both on main- and worker thread)
  • animation timelines
  • constant values (you can update them both on main- and worker thread)
Clone this wiki locally