Class FrozenTreeSource
java.lang.Object
com.ardor3d.extension.animation.skeletal.blendtree.FrozenTreeSource
- All Implemented Interfaces:
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetSourceData
(AnimationManager manager) boolean
isActive
(AnimationManager manager) Check if there are still active clips in the tree.void
resetClips
(AnimationManager manager, double globalStartTime) Ignores the command to reset our subtree.boolean
setTime
(double globalTime, AnimationManager manager) Ignores the command to set time on our subtree
-
Constructor Details
-
FrozenTreeSource
-
-
Method Details
-
getSourceData
- Specified by:
getSourceData
in interfaceBlendTreeSource
- Parameters:
manager
- the manager this is being called from.- Returns:
- a map of source information from the blend tree node.
-
resetClips
Ignores the command to reset our subtree.- Specified by:
resetClips
in interfaceBlendTreeSource
- Parameters:
manager
- the manager to use in resetting the clips.globalStartTime
- the new start time to use.
-
setTime
Ignores the command to set time on our subtree- Specified by:
setTime
in interfaceBlendTreeSource
- 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
Description copied from interface:BlendTreeSource
Check if there are still active clips in the tree.- Specified by:
isActive
in interfaceBlendTreeSource
- Parameters:
manager
- the manager this is being called from.- Returns:
- true if we found at least one active clip in the tree
-