ForesightMiningSoftwareCorporation / bevy_transform_gizmo

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

Entities with parents are mishandled #43

Open XMPPwocky opened 1 year ago

XMPPwocky commented 1 year ago

When interacting with a gizmo on an entity with a parent (whose Transform isn't the identity), the entity snaps its position as though the parent transform is applied twice; in other words, it seems like something is doing "Transform = GlobalTransform + whatever".

https://www.youtube.com/watch?v=iTNRtOoZV2o demo video - when moving the parent, everything works fine; when moving the child, you can see the "snapping" behavior, with the child "receding into the background" each time the gizmo is interacted with as the parent's Transform's negative Z offset is repeatedly applied.