Class FrozenTreeSource

java.lang.Object
com.ardor3d.extension.animation.skeletal.blendtree.FrozenTreeSource
All Implemented Interfaces:
BlendTreeSource

public class FrozenTreeSource extends Object implements BlendTreeSource
A blend tree node that does not update any clips or sources below it in the blend tree. This is useful for freezing an animation, often for purposes of transitioning between two unrelated animations.
  • Constructor Details

    • FrozenTreeSource

      public FrozenTreeSource(BlendTreeSource source, double frozenTime)
  • Method Details

    • getSourceData

      public Map<String,? extends Object> getSourceData(AnimationManager manager)
      Specified by:
      getSourceData in interface BlendTreeSource
      Parameters:
      manager - the manager this is being called from.
      Returns:
      a map of source information from the blend tree node.
    • resetClips

      public void resetClips(AnimationManager manager, double globalStartTime)
      Ignores the command to reset our subtree.
      Specified by:
      resetClips in interface BlendTreeSource
      Parameters:
      manager - the manager to use in resetting the clips.
      globalStartTime - the new start time to use.
    • setTime

      public boolean setTime(double globalTime, AnimationManager manager)
      Ignores the command to set time on our subtree
      Specified by:
      setTime in interface BlendTreeSource
      Parameters:
      globalTime - our new "global" timeline time.
      manager - the manager this is being called from.
      Returns:
      true if we found at least one active clip in the tree
    • isActive

      public boolean isActive(AnimationManager manager)
      Description copied from interface: BlendTreeSource
      Check if there are still active clips in the tree.
      Specified by:
      isActive in interface BlendTreeSource
      Parameters:
      manager - the manager this is being called from.
      Returns:
      true if we found at least one active clip in the tree