Class
AnimateChannel
:duration
: numberloops
: numberdirection
: TimeDirectioneasing
: EaseFuncinterpolation
: InterpolationisFinished
: booleantiming
: number[] | undefinedeasings
: EaseFunc[] | undefinedrelative
: booleanupdate
(obj: GameObj<any>, t: number) => booleangetLowerKeyIndexAndRelativeTime
(t: number, count: number, timing?: number[]) => [number, number, boolean]Returns the first key index for the given time, as well as the relative time towards the second key.
param
t- The time in seconds.
param
count- The optional timestamps in percent.
returns
The first key index for the given time, as well as the relative time towards the second key.