Class AnimationMixer

java.lang.Object
dev.oxydien.mathimations.animations.AnimationMixer

public class AnimationMixer extends Object
Responsible for merging multiple layer outputs into a final pose. Handles the priority system where lower layer indices override higher ones.
  • Constructor Details

    • AnimationMixer

      public AnimationMixer()
  • Method Details

    • blend

      public static ModelPartState blend(ModelPartState a, ModelPartState b, float weight)
      Blend two ModelPartStates together Helper method for blending within a layer
    • blend

      public static Pose blend(Pose blendedPose, Pose pose, float weight)
      Blend two poses together
    • blendMultiple

      public static Pose blendMultiple(List<Pose> poses, List<Float> weights)
      Blend multiple poses together with normalized weights
      Parameters:
      poses - List of poses to blend
      weights - List of normalized weights (should sum to 1.0)
      Returns:
      Blended pose