AnimationNodeStateMachinePlayback

Inherits: Resource < Reference < Object AnimationNodeStateMachine.

Description

AnimationTree state machines created with AnimationNodeStateMachine. Retrieve with $AnimationTree.get("parameters/playback"). Example:

  1. var state_machine = $AnimationTree.get("parameters/playback")state_machine.travel("some_state")

Tutorials

  • Using AnimationTree

    Properties

    Methods

    Method Descriptions

  • float get_current_length ( ) const

  • String get_current_node ( ) const Returns the currently playing animation state.

  • float get_current_play_position ( ) const Returns the playback position within the current animation state.

  • PoolStringArray get_travel_path ( ) const Returns the current travel path as computed internally by the A* algorithm.

  • bool is_playing ( ) const true if an animation is playing.

  • start ( String node ) Starts playing the given animation.

  • stop ( ) Stops the currently playing animation.

  • travel ( String to_node ) Transitions from the current state to another one, following the shortest path.