Class LayerLERPBlender

java.lang.Object
com.ardor3d.extension.animation.skeletal.layer.LayerLERPBlender
All Implemented Interfaces:
LayerBlender

public class LayerLERPBlender extends Object implements LayerBlender

A layer blender that uses linear interpolation to merge the results of two layers.

  • Constructor Details

    • LayerLERPBlender

      public LayerLERPBlender()
  • Method Details

    • getBlendKey

      public String getBlendKey()
      Specified by:
      getBlendKey in interface LayerBlender
      Returns:
      the String for retrieving the blend weight from the layer manager's values store.
    • setBlendKey

      public void setBlendKey(String blendKey)
      Specified by:
      setBlendKey in interface LayerBlender
      Parameters:
      blendKey - a String for retrieving the blend weight from the layer manager's values store.
    • getLayerA

      public AnimationLayer getLayerA()
    • setLayerA

      public void setLayerA(AnimationLayer layer)
      Specified by:
      setLayerA in interface LayerBlender
      Parameters:
      layer - our first layer
    • getLayerB

      public AnimationLayer getLayerB()
    • setLayerB

      public void setLayerB(AnimationLayer layer)
      Specified by:
      setLayerB in interface LayerBlender
      Parameters:
      layer - our second layer
    • getBlendedSourceData

      public Map<String,? extends Object> getBlendedSourceData(AnimationManager manager)
      Specified by:
      getBlendedSourceData in interface LayerBlender
      Parameters:
      manager - the manager this is being called from
      Returns:
      a key-value map representing the blended data from both animation layers.