ForesightMiningSoftwareCorporation / bevy_transform_gizmo

A 3d gizmo for transforming entities in Bevy.
Apache License 2.0
162 stars 40 forks source link

Update to bevy_mod_picking 0.13.0 #47

Open KnstAnt opened 1 year ago

KnstAnt commented 1 year ago

bevy_mod_picking has been updated to version 0.13 which includes useful features. Unfortunately, bevy_transform_gizmo does not work correctly with this update. When I run it, I get errors in the console: "ERROR bevy_transform_gizmo: Not exactly one picking camera. ERROR bevy_transform_gizmo::normalization: More than one picking camera"

aevyrie commented 1 year ago

bevy_mod_picking supports multiple picking cameras, and this plugin will need to be adjusted to support that. We can probably simplify this plugin substantially by using the new callbacks, that way we don't need to worry about cameras at all - we can define the behavior of handles based on the callbacks attached to each mesh.