Sfoglia il codice sorgente

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.
maxnim1986 3 anni fa
parent
commit
53e859915a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      tutorials/animation/animation_tree.rst

+ 1 - 1
tutorials/animation/animation_tree.rst

@@ -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
 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>`
 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).
 object from the ``AnimationTree`` node (it is exported as a property).