Class SyncFadeTransitionState
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
com.ardor3d.extension.animation.skeletal.state.SyncFadeTransitionState
- All Implemented Interfaces:
StateOwner
A transition that blends over a given time from one animation state to another, synchronizing the target state to the
initial state's start time. 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
ConstructorDescriptionSyncFadeTransitionState
(String targetState, double fadeTime, AbstractTwoStateLerpTransition.BlendType type) Construct a new SyncFadeTransitionState. -
Method Summary
Modifier and TypeMethodDescriptiongetTransitionState
(AbstractFiniteState callingState, AnimationLayer layer) Methods inherited from class com.ardor3d.extension.animation.skeletal.state.FadeTransitionState
postUpdate, update
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
-
SyncFadeTransitionState
public SyncFadeTransitionState(String targetState, double fadeTime, AbstractTwoStateLerpTransition.BlendType type) Construct a new SyncFadeTransitionState.- 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) - Overrides:
getTransitionState
in classFadeTransitionState
-