jakobhellermann / bevy-inspector-egui

Inspector plugin for the bevy game engine
Apache License 2.0
1.19k stars 173 forks source link

Transform.rotation is changed visually/incorrectly in the world inspector #21

Closed Looooong closed 3 years ago

Looooong commented 3 years ago

Modifying Transform.rotation of one entity in the world inspector changes visual representation of the Transform.rotation of other entity. Although GlobalTransform.rotation may change, Transform.rotation must not change because it is local to the entity space. Therefore, I think that there is something wrong with the Transform.rotation presentation in the world inspector.

Here is a demo video. Notice the other's Transform.rotation being changed when changing Transform.rotation of an entity.

https://user-images.githubusercontent.com/8206622/122642236-8a5fbf00-d133-11eb-93d5-ccc21b63e151.mp4

Weibye commented 3 years ago

I discovered the same issue today:

Changing Scale and Translation of the Parent Transform works correctly. Changing Rotation of the parent Transform results in a change to the child Transform instead a change to the GlobalTransform as expected.

jakobhellermann commented 3 years ago

The issue should be fixed now. Can you try again with the main branch? (bevy-inspector-egui = { git = "https://github.com/jakobhellermann/bevy-inspector-egui", branch = "main" }

Weibye commented 3 years ago

Yup, seems to be fixed on main, thanks!