mbrea-c / bevy_animation_graph

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

Further simplification of graph design, rotation modifier node #14

Closed mbrea-c closed 9 months ago

mbrea-c commented 9 months ago

Summary

Refactor and graph design change

We want the node interface to be as ergonomic as possible for v0.1. With that in mind we now allow nodes to directly call their input nodes using the provided context, rather than being fed their inputs by the graph propagation code. In other words, the graph no longer has direct ownership of the control flow but rather acts as a connection+caching layer between nodes, and calls are initiated by nodes themselves. This simplifies things and makes the node API more flexible. It also allows us to completely get rid of the time pass.

Rotation modifier node

A rotation modifier node applies a given rotation to a set of bones defined in a bone mask, to the input pose. In order to support this, quaternions, bone masks and vectors have been added as parameter values.