Class FrozenTransitionState
java.lang.Object
com.ardor3d.extension.animation.skeletal.state.AbstractFiniteState
com.ardor3d.extension.animation.skeletal.state.AbstractTransitionState
com.ardor3d.extension.animation.skeletal.state.AbstractTwoStateLerpTransition
com.ardor3d.extension.animation.skeletal.state.FrozenTransitionState
- All Implemented Interfaces:
StateOwner
A two state transition that freezes the starting state at its current position and blends that over time with a target state. The target state moves forward in time during the blend as normal.
XXX: Might be able to make this more efficient by capturing the getCurrentSourceData of stateA and reusing.-
Nested Class Summary
Nested classes/interfaces inherited from class com.ardor3d.extension.animation.skeletal.state.AbstractTwoStateLerpTransition
AbstractTwoStateLerpTransition.BlendType
-
Constructor Summary
ConstructorsConstructorDescriptionFrozenTransitionState
(String targetState, double fadeTime, AbstractTwoStateLerpTransition.BlendType type) Construct a new FrozenTransitionState. -
Method Summary
Modifier and TypeMethodDescriptiongetTransitionState
(AbstractFiniteState callingState, AnimationLayer layer) void
postUpdate
(AnimationLayer layer) Post update.void
update
(double globalTime, AnimationLayer layer) Update this state using the current global time.Methods inherited from class com.ardor3d.extension.animation.skeletal.state.AbstractTwoStateLerpTransition
getBlendType, getCurrentSourceData, getFadeTime, getPercent, getStart, getStateA, getStateB, replaceState, setBlendType, setFadeTime, setPercent, setStart, setStateA, setStateB
Methods inherited from class com.ardor3d.extension.animation.skeletal.state.AbstractTransitionState
doTransition, getEndWindow, getStartWindow, getTargetState, setEndWindow, setStartWindow
Methods inherited from class com.ardor3d.extension.animation.skeletal.state.AbstractFiniteState
getGlobalStartTime, getLastStateOwner, resetClips, resetClips, setLastStateOwner
-
Constructor Details
-
FrozenTransitionState
public FrozenTransitionState(String targetState, double fadeTime, AbstractTwoStateLerpTransition.BlendType type) Construct a new FrozenTransitionState.- Parameters:
targetState
- the name of the steady state we want the Animation Layer to be in at the end of the transition.fadeTime
- the amount of time we should take to do the transition.type
- the way we should interpolate the weighting during the transition.
-
-
Method Details
-
getTransitionState
public AbstractFiniteState getTransitionState(AbstractFiniteState callingState, AnimationLayer layer) -
update
Description copied from class:AbstractFiniteState
Update this state using the current global time.- Overrides:
update
in classAbstractTwoStateLerpTransition
- Parameters:
globalTime
- the current global time.layer
- the layer this state belongs to.
-
postUpdate
Description copied from class:AbstractFiniteState
Post update. If the state has no more clips and no end transition, this will clear this state from the layer.- Specified by:
postUpdate
in classAbstractFiniteState
- Parameters:
layer
- the layer this state belongs to.
-