run method
Runs an motion
, can optionally be passed a tag
. The tag
can be used
to reference the motion or a set of motions with the same tag.
myNode.motions.run(myMotion, tag: 'myMotionGroup');
Implementation
void run(Motion motion, {Object? tag}) {
assert(!motion._added);
motion._tag = tag;
motion._added = true;
motion.update(0.0);
_motions.add(motion);
}