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¶
resource_local_to_scene |
|
Métodos¶
get_current_length ( ) const |
|
get_current_node ( ) const |
|
get_current_play_position ( ) const |
|
get_travel_path ( ) const |
|
is_playing ( ) const |
|
void |
|
void |
stop ( ) |
void |
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.
PoolStringArray get_travel_path ( ) const
Devuelve la ruta de viaje actual calculada internamente por el algorithmo A*.
bool is_playing ( ) const
Devuelve true
si una animacion esta reproduciendose.
void start ( String node )
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.