Add teleport(StringName to_node)
to AnimationNodeStateMachinePlayback
#7486
Closed
hunterloftis
started this conversation in
Engine Core
Replies: 1 comment 1 reply
-
I'm reading more about AnimationNodeStateMachinePlayback to try to work around this... maybe |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, one of the things you lose when connecting an AnimationTree's state machine to an AnimationPlayer is the ability to directly control the active animation. If
travel()
is called several times in the same frame, only the final value is used, leading to the inability to control certain types of animations. This is especially limiting when cycles should be interrupted (thrown back into some starting state), but callingtravel('initial_state')
and thentravel('goal_state')
means that the initial call is essentially ignored.Godot should expose a
teleport()
method directly to the user allowing them to immediately set the current state of the machine to a particular node.Beta Was this translation helpful? Give feedback.
All reactions