Create a new AnimTransition.
Options.
Optional
conditions?: any[]A list of conditions which must pass for this transition to be used. Defaults to [].
Optional
exitTime?: numberIf provided, this transition will only be active for the exact frame during which the source states progress passes the time specified. Given as a normalized value of the source states duration. Values less than 1 will be checked every animation loop. Defaults to null.
The state that this transition will exit from.
Optional
interruptionSource?: stringDefines whether another transition can interrupt this one and which of the current or previous states transitions can do so. One of pc.ANIM_INTERRUPTION_*. Defaults to pc.ANIM_INTERRUPTION_NONE.
Optional
priority?: numberUsed to sort all matching transitions in ascending order. The first transition in the list will be selected. Defaults to 0.
Optional
time?: numberThe duration of the transition in seconds. Defaults to 0.
The state that this transition will transition to.
Optional
transitionOffset?: numberIf provided, the destination state will begin playing its animation at this time. Given in normalized time, based on the state's duration and must be between 0 and 1. Defaults to null.
AnimTransitions represent connections in the controllers state graph between AnimStates. During each frame, the controller tests to see if any of the AnimTransitions have the current AnimState as their source (from) state. If so and the AnimTransitions parameter based conditions are met, the controller will transition to the destination state.