Class FrozenTransitionState

All Implemented Interfaces:
StateOwner

public class FrozenTransitionState extends AbstractTwoStateLerpTransition

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.
  • 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