mbrea-c / bevy_animation_graph

Animation graphs in Bevy!
Apache License 2.0
97 stars 5 forks source link

State Machines #3

Closed mbrea-c closed 3 months ago

mbrea-c commented 9 months ago

Tracking issue for state machine nodes.

Requirements

  1. Arbitrary number of states, with an arbitrary number of transitions between every two of them (note that this is different from the core animation graph: in the animation graph there can only be one edge into every node input).
  2. Every node is an animation graph with a single pose output.
  3. Every node transition is an animation graph which takes as input the source state pose and the target state pose (plus some parameters such as transition percentage, etc) , and returns single pose.
  4. Transitions may need to be cut short under certain events; this needs to be configurable.

Questions

For requirements 2 and 3, should we support arbitrary FSM outputs as long as every state and transition has the same output schema?

I currently cannot think of a use-case for this, but if anything comes up it does seem doable.

mbrea-c commented 3 months ago

Implemented by #45