Class SimpleAnimationApplier

java.lang.Object
com.ardor3d.extension.animation.skeletal.blendtree.SimpleAnimationApplier
All Implemented Interfaces:
AnimationApplier

public class SimpleAnimationApplier extends Object implements AnimationApplier
Very simple applier. Just applies joint transform data, calls any callbacks and updates the pose's global transforms.
  • Constructor Details

    • SimpleAnimationApplier

      public SimpleAnimationApplier()
  • Method Details

    • apply

      public void apply(Spatial root, AnimationManager manager)
      Description copied from interface: AnimationApplier
      Apply the current status of the manager to non-skeletal assets.
      Specified by:
      apply in interface AnimationApplier
      Parameters:
      root - the root of the scene graph we will apply to.
      manager - the animation manager to pull state from.
    • applyTo

      public void applyTo(SkeletonPose applyToPose, AnimationManager manager)
      Description copied from interface: AnimationApplier
      Apply the current status of the manager to our SkeletonPose.
      Specified by:
      applyTo in interface AnimationApplier
      Parameters:
      applyToPose - the pose to apply to
      manager - the animation manager to pull state from.
    • clearSpatialCache

      public void clearSpatialCache()
    • addTriggerCallback

      public void addTriggerCallback(String key, TriggerCallback callback)
      Description copied from interface: AnimationApplier
      Add a trigger callback to our callback list.
      Specified by:
      addTriggerCallback in interface AnimationApplier
      Parameters:
      key - the key to add a callback to
      callback - the callback logic to add.
    • removeTriggerCallback

      public boolean removeTriggerCallback(String key, TriggerCallback callback)
      Description copied from interface: AnimationApplier
      Remove a trigger callback from our callback list for a specific key.
      Specified by:
      removeTriggerCallback in interface AnimationApplier
      Parameters:
      key - the key to remove from
      callback - the callback logic to remove.
      Returns:
      true if the callback was found to remove