Stores a reference to an animation, a target for that animation and a Abacus.timer
object which will call AnimationState.step
. On instantiation the timer object will be created if not provided.
Parameters:
- options - dictionary with the following values
- animation <Abacus.animation>
- target <object>
- timer <Abacus.timer> [optional]
Sample an animation at time time
onto target
.
Parameters:
- animation - parent animation objet
- target - target object
- time <number> - time value to sample
- state [optional] - state object for things like speeding up frame lookup
function AnimationState( { animation: animation, target: target, timer: timer || undefined } ) {}
are you sure you mean that?To be honest, I have no idea what you're trying to illustrate here. Sorry.