Skip to content

Commit c22b434

Browse files
committed
Added function for converting between screen and world space
1 parent f520a34 commit c22b434

File tree

13 files changed

+711
-96
lines changed

13 files changed

+711
-96
lines changed

Cargo.toml

+8
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,19 @@ path = "examples/2d/text2d.rs"
121121
name = "texture_atlas"
122122
path = "examples/2d/texture_atlas.rs"
123123

124+
[[example]]
125+
name = "mouse_tracking"
126+
path = "examples/2d/mouse_tracking.rs"
127+
124128
# 3D Rendering
125129
[[example]]
126130
name = "3d_scene"
127131
path = "examples/3d/3d_scene.rs"
128132

133+
[[example]]
134+
name = "screen_to_world"
135+
path = "examples/3d/screen_to_world.rs"
136+
129137
[[example]]
130138
name = "load_gltf"
131139
path = "examples/3d/load_gltf.rs"

crates/bevy_geometry/Cargo.toml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[package]
2+
name = "bevy_geometry"
3+
version = "0.4.0"
4+
authors = [
5+
"Bevy Contributors <[email protected]>",
6+
"Aevyrie Roessler <[email protected]>",
7+
]
8+
edition = "2018"
9+
10+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
11+
12+
[dependencies]
13+
bevy_transform = { path = "../bevy_transform", version = "0.4.0" }
14+
bevy_math = { path = "../bevy_math", version = "0.4.0" }
15+
bevy_reflect = { path = "../bevy_reflect", version = "0.4.0", features = ["bevy"] }

0 commit comments

Comments
 (0)