mbrea-c / bevy_animation_graph

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

Support separate time query for each time-dependent output #2

Closed mbrea-c closed 9 months ago

mbrea-c commented 9 months ago

Time queries currently only support one query per node. However, there may be cases where this is not enough: In particular, nested animation graph nodes may have an arbitrary number of time-dependent inputs and outputs, and currently the system will not be able to handle that correctly.

This is not a big change, since we only support an arbitrary number of time-dependent inputs/outputs with specific duration values for each, so the foundation is there.

mbrea-c commented 9 months ago

This was resolved by #11. Allowing multiple time queries outputs turned out to complicate the computations more than I would like and I would start running into issues with caching, so I decided to take the route most other animation graph systems take and disallow more than one time-dependent output per node.