-
Notifications
You must be signed in to change notification settings - Fork 1
Animator
J.I. /podhead edited this page Feb 3, 2025
·
1 revision
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
- 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
- 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)