Class FadeTransitionState
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.FadeTransitionState
- All Implemented Interfaces:
StateOwner
- Direct Known Subclasses:
SyncFadeTransitionState
A transition that blends over a given time from one animation state to another, beginning the target clip from local
time 0 at the start of the transition. This is best used with two clips that have similar motions.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ardor3d.extension.animation.skeletal.state.AbstractTwoStateLerpTransition
AbstractTwoStateLerpTransition.BlendType
-
Constructor Summary
ConstructorDescriptionFadeTransitionState
(String targetState, double fadeTime, AbstractTwoStateLerpTransition.BlendType type) Construct a new FadeTransitionState. -
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
-
FadeTransitionState
public FadeTransitionState(String targetState, double fadeTime, AbstractTwoStateLerpTransition.BlendType type) Construct a new FadeTransitionState.- 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.
-