UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

126 lines (124 loc) 4.09 kB
/** * Used to set the anim state graph transition interruption source to no state. * * @category Animation */ const ANIM_INTERRUPTION_NONE = 'NONE'; /** * Used to set the anim state graph transition interruption source as the previous state only. * * @category Animation */ const ANIM_INTERRUPTION_PREV = 'PREV_STATE'; /** * Used to set the anim state graph transition interruption source as the next state only. * * @category Animation */ const ANIM_INTERRUPTION_NEXT = 'NEXT_STATE'; /** * Used to set the anim state graph transition interruption sources as the previous state followed * by the next state. * * @category Animation */ const ANIM_INTERRUPTION_PREV_NEXT = 'PREV_STATE_NEXT_STATE'; /** * Used to set the anim state graph transition interruption sources as the next state followed by * the previous state. * * @category Animation */ const ANIM_INTERRUPTION_NEXT_PREV = 'NEXT_STATE_PREV_STATE'; /** * Used to set an anim state graph transition condition predicate as '>'. * * @category Animation */ const ANIM_GREATER_THAN = 'GREATER_THAN'; /** * Used to set an anim state graph transition condition predicate as '<'. * * @category Animation */ const ANIM_LESS_THAN = 'LESS_THAN'; /** * Used to set an anim state graph transition condition predicate as '>='. * * @category Animation */ const ANIM_GREATER_THAN_EQUAL_TO = 'GREATER_THAN_EQUAL_TO'; /** * Used to set an anim state graph transition condition predicate as '<='. * * @category Animation */ const ANIM_LESS_THAN_EQUAL_TO = 'LESS_THAN_EQUAL_TO'; /** * Used to set an anim state graph transition condition predicate as '==='. * * @category Animation */ const ANIM_EQUAL_TO = 'EQUAL_TO'; /** * Used to set an anim state graph transition condition predicate as '!=='. * * @category Animation */ const ANIM_NOT_EQUAL_TO = 'NOT_EQUAL_TO'; /** * Used to set an anim state graph parameter as type integer. * * @category Animation */ const ANIM_PARAMETER_INTEGER = 'INTEGER'; /** * Used to set an anim state graph parameter as type float. * * @category Animation */ const ANIM_PARAMETER_FLOAT = 'FLOAT'; /** * Used to set an anim state graph parameter as type boolean. * * @category Animation */ const ANIM_PARAMETER_BOOLEAN = 'BOOLEAN'; /** * Used to set an anim state graph parameter as type trigger. * * @category Animation */ const ANIM_PARAMETER_TRIGGER = 'TRIGGER'; /** * @type {string} * @category Animation */ const ANIM_BLEND_1D = '1D'; /** * @type {string} * @category Animation */ const ANIM_BLEND_2D_DIRECTIONAL = '2D_DIRECTIONAL'; /** * @type {string} * @category Animation */ const ANIM_BLEND_2D_CARTESIAN = '2D_CARTESIAN'; /** * @type {string} * @category Animation */ const ANIM_BLEND_DIRECT = 'DIRECT'; /** * The starting state in an anim state graph layer. * * @category Animation */ const ANIM_STATE_START = 'START'; /** * The ending state in an anim state graph layer. * * @category Animation */ const ANIM_STATE_END = 'END'; /** * Used to indicate any state in an anim state graph layer. * * @category Animation */ const ANIM_STATE_ANY = 'ANY'; const ANIM_CONTROL_STATES = [ ANIM_STATE_START, ANIM_STATE_END, ANIM_STATE_ANY ]; /** * Used to indicate that a layers animations should overwrite all previous layers. * * @category Animation */ const ANIM_LAYER_OVERWRITE = 'OVERWRITE'; /** * Used to indicate that a layers animations should blend additively with previous layers. * * @category Animation */ const ANIM_LAYER_ADDITIVE = 'ADDITIVE'; export { ANIM_BLEND_1D, ANIM_BLEND_2D_CARTESIAN, ANIM_BLEND_2D_DIRECTIONAL, ANIM_BLEND_DIRECT, ANIM_CONTROL_STATES, ANIM_EQUAL_TO, ANIM_GREATER_THAN, ANIM_GREATER_THAN_EQUAL_TO, ANIM_INTERRUPTION_NEXT, ANIM_INTERRUPTION_NEXT_PREV, ANIM_INTERRUPTION_NONE, ANIM_INTERRUPTION_PREV, ANIM_INTERRUPTION_PREV_NEXT, ANIM_LAYER_ADDITIVE, ANIM_LAYER_OVERWRITE, ANIM_LESS_THAN, ANIM_LESS_THAN_EQUAL_TO, ANIM_NOT_EQUAL_TO, ANIM_PARAMETER_BOOLEAN, ANIM_PARAMETER_FLOAT, ANIM_PARAMETER_INTEGER, ANIM_PARAMETER_TRIGGER, ANIM_STATE_ANY, ANIM_STATE_END, ANIM_STATE_START };