State Machine travel teleports in the absence of any transition between the states

Added a line explaining that the State Machine travel function teleports to a destination node in absence of any transition between the current and destination node.
This commit is contained in:
maxnim1986
2021-11-14 00:30:04 +05:30
committed by GitHub
parent d6d97aaf5e
commit 53e859915a

View File

@@ -259,7 +259,7 @@ State machine travel
--------------------
One of the nice features in Godot's ``StateMachine`` implementation is the ability to travel. The graph can be instructed to go from the
current state to another one, while visiting all the intermediate ones. This is done via the A\* algorithm.
current state to another one, while visiting all the intermediate ones. This is done via the A\* algorithm.In the absence of any transition between the current state and the destination state, the graph teleports to the destination state.
To use the travel ability, you should first retrieve the :ref:`AnimationNodeStateMachinePlayback <class_AnimationNodeStateMachinePlayback>`
object from the ``AnimationTree`` node (it is exported as a property).