Class AnimationMixer
java.lang.Object
dev.oxydien.mathimations.animations.AnimationMixer
Responsible for merging multiple layer outputs into a final pose.
Handles the priority system where lower layer indices override higher ones.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelPartStateblend(ModelPartState a, ModelPartState b, float weight) Blend two ModelPartStates together Helper method for blending within a layerstatic PoseBlend two poses togetherstatic PoseblendMultiple(List<Pose> poses, List<Float> weights) Blend multiple poses together with normalized weights
-
Constructor Details
-
AnimationMixer
public AnimationMixer()
-
-
Method Details
-
blend
Blend two ModelPartStates together Helper method for blending within a layer -
blend
Blend two poses together -
blendMultiple
Blend multiple poses together with normalized weights- Parameters:
poses- List of poses to blendweights- List of normalized weights (should sum to 1.0)- Returns:
- Blended pose
-