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
380 downloads per month
Used in bevy-inspector-egui
3.5MB
1.5K
SLoC
egui-gizmo
3d transformation gizmo built on top of the egui library.
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