fix(bevy_mod_xr): add gizmos feature
Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
8
Cargo.lock
generated
8
Cargo.lock
generated
@@ -890,7 +890,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bevy_mod_openxr"
|
name = "bevy_mod_openxr"
|
||||||
version = "0.2.1"
|
version = "0.3.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"android_system_properties",
|
"android_system_properties",
|
||||||
"ash",
|
"ash",
|
||||||
@@ -918,14 +918,14 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bevy_mod_xr"
|
name = "bevy_mod_xr"
|
||||||
version = "0.2.1"
|
version = "0.3.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bevy",
|
"bevy",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bevy_openxr_android"
|
name = "bevy_openxr_android"
|
||||||
version = "0.2.1"
|
version = "0.3.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bevy",
|
"bevy",
|
||||||
"bevy_mod_openxr",
|
"bevy_mod_openxr",
|
||||||
@@ -1388,7 +1388,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bevy_xr_utils"
|
name = "bevy_xr_utils"
|
||||||
version = "0.2.1"
|
version = "0.3.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bevy",
|
"bevy",
|
||||||
"bevy_mod_openxr",
|
"bevy_mod_openxr",
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ use bevy_xr_utils::xr_utils_actions::{
|
|||||||
fn main() {
|
fn main() {
|
||||||
App::new()
|
App::new()
|
||||||
.add_plugins(add_xr_plugins(DefaultPlugins))
|
.add_plugins(add_xr_plugins(DefaultPlugins))
|
||||||
.add_plugins(bevy_xr_utils::hand_gizmos::HandGizmosPlugin)
|
.add_plugins(bevy_mod_xr::hand_debug_gizmos::HandGizmosPlugin)
|
||||||
.add_systems(Startup, setup_scene)
|
.add_systems(Startup, setup_scene)
|
||||||
.add_systems(
|
.add_systems(
|
||||||
Startup,
|
Startup,
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ fn main() {
|
|||||||
..OxrSessionConfig::default()
|
..OxrSessionConfig::default()
|
||||||
})
|
})
|
||||||
.insert_resource(ClearColor(Color::NONE))
|
.insert_resource(ClearColor(Color::NONE))
|
||||||
.add_plugins(bevy_xr_utils::hand_gizmos::HandGizmosPlugin)
|
.add_plugins(bevy_mod_xr::hand_debug_gizmos::HandGizmosPlugin)
|
||||||
.add_systems(Startup, setup)
|
.add_systems(Startup, setup)
|
||||||
.add_systems(Update, handle_input)
|
.add_systems(Update, handle_input)
|
||||||
.add_systems(Update, print_main_session_changes)
|
.add_systems(Update, print_main_session_changes)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ use bevy_mod_xr::session::{XrSessionPlugin, XrState};
|
|||||||
fn main() -> AppExit {
|
fn main() -> AppExit {
|
||||||
App::new()
|
App::new()
|
||||||
.add_plugins(add_xr_plugins(DefaultPlugins).set(XrSessionPlugin { auto_handle: true }))
|
.add_plugins(add_xr_plugins(DefaultPlugins).set(XrSessionPlugin { auto_handle: true }))
|
||||||
.add_plugins(bevy_xr_utils::hand_gizmos::HandGizmosPlugin)
|
.add_plugins(bevy_mod_xr::hand_debug_gizmos::HandGizmosPlugin)
|
||||||
.add_systems(Startup, setup)
|
.add_systems(Startup, setup)
|
||||||
.add_systems(Update, handle_input)
|
.add_systems(Update, handle_input)
|
||||||
.insert_resource(AmbientLight::default())
|
.insert_resource(AmbientLight::default())
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ repository.workspace = true
|
|||||||
keywords = ["gamedev", "bevy", "Xr", "Vr"]
|
keywords = ["gamedev", "bevy", "Xr", "Vr"]
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
[features]
|
||||||
|
default = ["gizmos"]
|
||||||
|
gizmos = ["bevy/bevy_gizmos"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bevy = { workspace = true, features = ["bevy_log"] }
|
bevy = { workspace = true, features = ["bevy_log"] }
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
pub mod actions;
|
pub mod actions;
|
||||||
pub mod camera;
|
pub mod camera;
|
||||||
|
#[cfg(feature = "gizmos")]
|
||||||
|
pub mod hand_debug_gizmos;
|
||||||
pub mod hands;
|
pub mod hands;
|
||||||
pub mod session;
|
pub mod session;
|
||||||
pub mod types;
|
|
||||||
pub mod spaces;
|
pub mod spaces;
|
||||||
pub mod hand_debug_gizmos;
|
pub mod types;
|
||||||
|
|||||||
Reference in New Issue
Block a user