Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

egui-gizmo -> transform-gizmo #49

Merged
merged 48 commits into from
Apr 6, 2024
Merged

egui-gizmo -> transform-gizmo #49

merged 48 commits into from
Apr 6, 2024

Conversation

urholaukkarinen
Copy link
Owner

egui-gizmo is no more, say hi to transform-gizmo!

transform-gizmo implements the core gizmo functionality. You can use it directly if you're comfortable implementing the rendering yourself. The gizmo provides a list of fresh 2d vertices for every frame.

transform-gizmo-egui is much like the old egui-gizmo. Not much has changed there.

transform-gizmo-bevy provides a plugin for easy integration into the Bevy engine.

Gizmo::interact is split into two methods: update and draw.
Gizmo::update handles interaction with the gizmo and returns the interaction result.
Gizmo::draw returns 2d vertex data that can be used to draw the gizmo.

transform-gizmo-egui provides egui integration and it works much like the original egui-gizmo.

It is now recommended to create Gizmo once and update it each frame.
The Gizmo configuration can be updated with Gizmo::update_config.
@urholaukkarinen urholaukkarinen merged commit 2b5890a into main Apr 6, 2024
2 checks passed
@urholaukkarinen urholaukkarinen deleted the transform-gizmo branch April 6, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant