AbstractTransitionState

AbstractTransitionState

An abstract transition state that blends between two other states.

Constructor

new AbstractTransitionState()

Methods

getCurrentSourceData()

isValid(timeWindow, globalTime) → {boolean}

Check if a transition is valid within a given time window.

Parameters:
Name Type Description
timeWindow Array

start and end time

globalTime number

current world time

readFromConfig(config)

Method for setting fade time and blend type from config data.

Parameters:
Name Type Description
config Object

configuration data

update(globalTime)

Update this state using the current global time.

Parameters:
Name Type Description
globalTime number

the current global time.