mbrea-c / bevy_animation_graph

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

Add configuration to flip node #37

Closed mbrea-c closed 9 months ago

mbrea-c commented 9 months ago

The existing Flip node requires that parts of an entity path that must be mirrored end with "L" or "R", but this is often not the case with generated naming schemes used by tools such as Blender's rigify.

This PR enables the behavior to be configured with custom keys instead of "L" and "R", and regex patterns that must precede and follow the keys in each path part.

Breaking changes

The default behaviour remains the same, but it is necessary to edit the animation graph files to replace instances of FlipLR with FlipLR() since the node serialization format is now a tagged enum variant with fields.