Vec2Track

Vec2Track

new Vec2Track(values, smooth)

Create a new Vec2 track.
Parameters:
NameTypeDefaultDescription
valuesObject.<number, (number|Vec2)>Values at time intervals
smoothbooleanfalseWhether the track should start and end smoothly/gradually (false by default)

Methods

update(actor, progress)

Update the animation track.
Parameters:
NameTypeDescription
actorActorActor to apply changes to
progressnumberPercentage of animation complete (0 - 1)