AnimationNodeStateMachinePlayback

Inherits: Resource < Reference < Object

Control de reproduccion para el AnimationNodeStateMachine.

Descripción

Permite el control de los estados de maquina de AnimationTree creados con AnimationNodeStateMachine. Recupero con $AnimationTree.get("parameters/playback").

Ejemplo

var maquina_estados = $AnimationTree.get("parameters/playback")
maquina_estados.travel("algun_estado")

Tutoriales

Propiedades

bool

resource_local_to_scene

true (overrides Resource)

Métodos

float

get_current_length ( ) const

String

get_current_node ( ) const

float

get_current_play_position ( ) const

PoolStringArray

get_travel_path ( ) const

bool

is_playing ( ) const

void

start ( String node )

void

stop ( )

void

travel ( String to_node )

Descripciones de Métodos

  • float get_current_length ( ) const


  • String get_current_node ( ) const

Devuelve el estado de la animacion que se esta reproduciendo actualmente.


  • float get_current_play_position ( ) const

Returns the playback position within the current animation state.


Devuelve la ruta de viaje actual calculada internamente por el algorithmo A*.


  • bool is_playing ( ) const

Devuelve true si una animacion esta reproduciendose.


Empieza a ejecutar la animacion dada.


  • void stop ( )

Para la animacion en ejecucion.


  • void travel ( String to_node )

Las transiciones desde el estado actual a otro, siguiendo la ruta mas corta.