Skip to content

Commit cba6a4c

Browse files
committed
upstream: jackdaw transform gizmo
1 parent bd0eee7 commit cba6a4c

6 files changed

Lines changed: 840 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4367,6 +4367,18 @@ description = "A scene showcasing 3D gizmos"
43674367
category = "Gizmos"
43684368
wasm = true
43694369

4370+
[[example]]
4371+
name = "transform_gizmo"
4372+
path = "examples/gizmos/transform_gizmo.rs"
4373+
doc-scrape-examples = true
4374+
required-features = ["free_camera"]
4375+
4376+
[package.metadata.example.transform_gizmo]
4377+
name = "Transform Gizmo"
4378+
description = "Interactive transform gizmo for translating, rotating, and scaling entities"
4379+
category = "Gizmos"
4380+
wasm = true
4381+
43704382
[[example]]
43714383
name = "axes"
43724384
path = "examples/gizmos/axes.rs"

crates/bevy_gizmos/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ bevy_reflect = { path = "../bevy_reflect", version = "0.19.0-dev" }
2121
bevy_transform = { path = "../bevy_transform", version = "0.19.0-dev" }
2222
bevy_gizmos_macros = { path = "macros", version = "0.19.0-dev" }
2323
bevy_time = { path = "../bevy_time", version = "0.19.0-dev" }
24+
bevy_input = { path = "../bevy_input", version = "0.19.0-dev" }
25+
bevy_window = { path = "../bevy_window", version = "0.19.0-dev" }
2426
bevy_mesh = { path = "../bevy_mesh", version = "0.19.0-dev", optional = true }
2527

2628
[lints]

crates/bevy_gizmos/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ pub mod retained;
3838
pub mod rounded_box;
3939
mod simplex_stroke_font;
4040
pub mod stroke_text;
41+
pub mod transform_gizmo;
4142

4243
#[cfg(feature = "bevy_mesh")]
4344
pub mod skinned_mesh_bounds;
@@ -66,6 +67,11 @@ pub mod prelude {
6667
global::gizmo,
6768
primitives::{dim2::GizmoPrimitive2d, dim3::GizmoPrimitive3d},
6869
retained::Gizmo,
70+
transform_gizmo::{
71+
TransformGizmoAxis, TransformGizmoConfig, TransformGizmoDragState, TransformGizmoFocus,
72+
TransformGizmoHoverState, TransformGizmoMode, TransformGizmoPlugin,
73+
TransformGizmoSpace,
74+
},
6975
AppGizmoBuilder, GizmoAsset,
7076
};
7177
}

0 commit comments

Comments
 (0)