Transition

Transitions are used to tell your machine state to jump from one state to another depending on the result of a logical expression. A transition can be immediate or not; meaning that if it is immediate as soon the condition is true the state will automatically change.

On the other hand, a non-immediate transition will wait until the duration of the Action (minus threshold and duration time setup); in other words, delay the jump to the next machine state.

See Also

Static Variables


Name Description
actionlayer Parent ActionLayer where the Transition is defined.
src Unique id of the source ActionClip connected to the Transition.
dst Unique id of the destination ActionClip connected to the Transition.

Variables


Name Description
threshold Relative value to offset the end time of the Action to perform a state jump.
duration Defines the total time of the Transition (where 1.0 = 1 sec.).
offset Relative value to set an offset to next state Action.
flags Bit mask of options currently applied to the Transition.
enabled Enable or disable the active Transition.
immediate Force the state jump to occur as soon as the Transition logical expression(s) is validated.
equality Base value to use for the Transition logical expression.

Functions


Name Description
SetLink Create a bridge between two ActionClip where the active Transition should be placed.
AddCondition Creates a new condition slot.
RemoveCondition Helper to remove a particular condition by index.
SetCondition Function to modify a certain condition slot using its index as key.




NRG - API 2022.4.384543 - Fri Nov 4 2022
Copyright © 2022 nrgcore.com. All Rights Reserved. Terms of Service - Privacy Policy - EULA