@zephyr3d/scene 0.9.10 → 0.9.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animation/animationset.js +20 -1
- package/dist/animation/animationset.js.map +1 -1
- package/dist/animation/animationtimeline.js +5 -5
- package/dist/animation/animationtimeline.js.map +1 -1
- package/dist/app/scriptregistry.js +16 -11
- package/dist/app/scriptregistry.js.map +1 -1
- package/dist/index.d.ts +30 -9
- package/dist/material/mixins/lit.js +88 -79
- package/dist/material/mixins/lit.js.map +1 -1
- package/package.json +3 -3
|
@@ -606,7 +606,26 @@ function bakeHumanoidRotationTracks(sourceClip, srcSkeleton, dstSkeleton, srcRoo
|
|
|
606
606
|
dstClip.addTrack(remap.dstNode, track);
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
|
-
|
|
609
|
+
/**
|
|
610
|
+
* Animation set
|
|
611
|
+
*
|
|
612
|
+
* Manages a collection of named animation clips for a model and orchestrates:
|
|
613
|
+
* - Playback state (time, loops, speed, weights, fade-in/out).
|
|
614
|
+
* - Blending across multiple tracks targeting the same property via weighted averages.
|
|
615
|
+
* - Skeleton usage and application for clips that drive skeletal animation.
|
|
616
|
+
* - Active track registration and cleanup as clips start/stop.
|
|
617
|
+
*
|
|
618
|
+
* Usage:
|
|
619
|
+
* - Create or retrieve `AnimationClip`s by name.
|
|
620
|
+
* - Start playback with `playAnimation(name, options)`.
|
|
621
|
+
* - Advance animation with `update(deltaSeconds)`.
|
|
622
|
+
* - Optionally adjust weight while playing with `setAnimationWeight(name, weight)`.
|
|
623
|
+
*
|
|
624
|
+
* Lifetime:
|
|
625
|
+
* - Disposing the set releases references to the model, clips, and clears active state.
|
|
626
|
+
*
|
|
627
|
+
* @public
|
|
628
|
+
*/ class AnimationSet extends makeObservable(Disposable)() {
|
|
610
629
|
/** @internal */ _model;
|
|
611
630
|
/** @internal */ _animations;
|
|
612
631
|
/** @internal */ _skeletons;
|