Class SimpleAnimationApplier
java.lang.Object
com.ardor3d.extension.animation.skeletal.blendtree.SimpleAnimationApplier
- All Implemented Interfaces:
AnimationApplier
Very simple applier. Just applies joint transform data, calls any callbacks and updates the pose's global transforms.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTriggerCallback
(String key, TriggerCallback callback) Add a trigger callback to our callback list.void
apply
(Spatial root, AnimationManager manager) Apply the current status of the manager to non-skeletal assets.void
applyTo
(SkeletonPose applyToPose, AnimationManager manager) Apply the current status of the manager to our SkeletonPose.void
boolean
removeTriggerCallback
(String key, TriggerCallback callback) Remove a trigger callback from our callback list for a specific key.
-
Constructor Details
-
SimpleAnimationApplier
public SimpleAnimationApplier()
-
-
Method Details
-
apply
Description copied from interface:AnimationApplier
Apply the current status of the manager to non-skeletal assets.- Specified by:
apply
in interfaceAnimationApplier
- Parameters:
root
- the root of the scene graph we will apply to.manager
- the animation manager to pull state from.
-
applyTo
Description copied from interface:AnimationApplier
Apply the current status of the manager to our SkeletonPose.- Specified by:
applyTo
in interfaceAnimationApplier
- Parameters:
applyToPose
- the pose to apply tomanager
- the animation manager to pull state from.
-
clearSpatialCache
public void clearSpatialCache() -
addTriggerCallback
Description copied from interface:AnimationApplier
Add a trigger callback to our callback list.- Specified by:
addTriggerCallback
in interfaceAnimationApplier
- Parameters:
key
- the key to add a callback tocallback
- the callback logic to add.
-
removeTriggerCallback
Description copied from interface:AnimationApplier
Remove a trigger callback from our callback list for a specific key.- Specified by:
removeTriggerCallback
in interfaceAnimationApplier
- Parameters:
key
- the key to remove fromcallback
- the callback logic to remove.- Returns:
- true if the callback was found to remove
-