jakobhellermann / bevy-inspector-egui

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

Changes to rotation should preserve unit quaternion #1

Closed willcrichton closed 3 years ago

willcrichton commented 3 years ago

When you use the UI to rotate an object, you can generate a non-unit quaternion which doesn't correctly describe a rotation. Ideally the UI would enforce this constraint.

https://github.com/jakobhellermann/bevy-inspector-egui/blob/main/src/impls/bevy_impls.rs#L27-L29

jakobhellermann commented 3 years ago

Thanks. It's fixed now but maybe in the future we could display a gizmo like this, although maybe that probably makes more sense to have in the world rather than UI and can live in another plugin.