Merge pull request #5391 from maxnim1986/patch-2

State Machine travel teleports in the absence of any transition betwe…
This commit is contained in:
Max Hilbrunner
2021-11-15 14:54:06 +01:00
committed by GitHub

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).