Skip to content

Conversation

@TokageItLab
Copy link
Member

@TokageItLab TokageItLab commented Nov 13, 2025

Context: #98617 (comment)

Implementing proposal godotengine/godot-proposals#11769 as teleport xfade options.

This makes transitions with crossfade between states without transition paths by storing the current state into fading_from at the teleport moment.

Add default crossfade options to the NodeStateMachine properties.

image

Also, add an optional argument to travel() for setting different crossfade durations per instance.

image

The previous implementation #102784 tried to allow adding path between states without transitions to the queue, but it would invade pathfinding iterations and become overly complex.

Therefore, as a minimal implementation, this PR only set a one-time crossroad that is active only when teleportation between two states. Then, I think users can handle complex cases by subscribing state and signal.

@TokageItLab TokageItLab moved this from Ready for review to Work in progress in Animation Team Issue Triage Nov 13, 2025
@TokageItLab TokageItLab marked this pull request as draft November 13, 2025 08:40
@TokageItLab
Copy link
Member Author

TODO: The behavior when teleporting out from within the GroupedStateMachine is unstable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Work in progress

Development

Successfully merging this pull request may close these issues.

Add support for AnimationTree state machine teleport blending

1 participant