14 releases (9 breaking)

0.10.0 Feb 12, 2023
0.8.2 Nov 6, 2022
0.7.0 Jun 4, 2022
0.6.0 Mar 15, 2022
0.4.1 Nov 18, 2021

#109 in GUI

Download history 12/week @ 2022-12-01 24/week @ 2022-12-08 21/week @ 2022-12-15 20/week @ 2022-12-22 8/week @ 2022-12-29 26/week @ 2023-01-05 32/week @ 2023-01-12 51/week @ 2023-01-19 34/week @ 2023-01-26 66/week @ 2023-02-02 156/week @ 2023-02-09 97/week @ 2023-02-16 85/week @ 2023-02-23 96/week @ 2023-03-02 118/week @ 2023-03-09 72/week @ 2023-03-16

380 downloads per month
Used in bevy-inspector-egui

Custom license

3.5MB
1.5K SLoC

egui-gizmo

Latest version Documentation MIT

3d transformation gizmo built on top of the egui library.

Try it out in a web demo

Rotation Translation Scale

Usage

let gizmo = Gizmo::new("My gizmo")
    .view_matrix(view_matrix)
    .projection_matrix(projection_matrix)
    .model_matrix(model_matrix)
    .mode(GizmoMode::Rotate);

if let Some(response) = gizmo.interact(ui) {
    model_matrix = response.transform.into();
}

For a more complete example, see the demo source code.

The gizmo accepts matrices as Into<[[f32; 4]; 4]>, which means it is easy to use with matrix types from various crates such as nalgebra, glam and cgmath.

Dependencies

~5–9MB
~160K SLoC