ClipBlocks class
Several blocks on one track — animationTime: ClipBlocks([ClipBlock(clip: 'Walk', at: 0.ms, length: 1000.ms), ClipBlock(clip: 'Run', at: 700.ms, length: 1700.ms)]) — crossfading where they overlap.
- Inheritance
-
- Object
- MotionTrack
- ClipBlocks
- Available extensions
Constructors
-
ClipBlocks(List<
MotionClip> blocks)
Properties
-
clips
→ List<
MotionClip> -
Blocks instead of keys — see MotionClip, kept sorted by start. A
track has one or the other: a block's keys would be derived, so a key
added to a block track replaces the blocks, and a block put on a key
track replaces the keys. Two blocks that overlap crossfade over the
overlap. The timeline draws bars for them; the file spells
ClipTrack for one and ClipBlocks for several.
finalinherited
- duration → Duration
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
keys
→ List<
MotionKey> -
finalinherited
- kind → TrackKind
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
blendAt(
Duration t) → ClipBlend -
Available on MotionTrack, provided by the MotionTrackBlend extension
The blocks' answer att. Inside one block, that block. Inside two, the earlier leads and the later comes in,blendrunning 0 to 1 from the later's start to the earlier's end. Between blocks the last one to end holds its end; before the first, the first holds its start. -
copy(
) → MotionTrack -
inherited
-
evaluate(
Duration t) → Object -
Available on MotionTrack, provided by the MotionTrackEvaluate extension
The hold rule: before the first key its value, after the last the last, and between neighbours a lerp shaped by the ARRIVING key's curve. Pure int— backwards seek needs no history. -
insertKey(
MotionKey k) → void -
inherited
-
moveKey(
MotionKey k, Duration at) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeKey(
MotionKey k) → void -
inherited
-
sortClips(
) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited