cargo fmt and removed the unessecary examples.
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
use bevy::{ecs::component::Component, math::bool, prelude::{Deref, DerefMut}};
|
||||
use bevy::{
|
||||
ecs::component::Component,
|
||||
math::bool,
|
||||
prelude::{Deref, DerefMut},
|
||||
};
|
||||
|
||||
#[repr(transparent)]
|
||||
#[derive(Clone, Copy, Component, Debug,DerefMut,Deref)]
|
||||
#[derive(Clone, Copy, Component, Debug, DerefMut, Deref)]
|
||||
pub struct HandBoneRadius(pub f32);
|
||||
|
||||
#[repr(u8)]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
pub mod actions;
|
||||
pub mod camera;
|
||||
pub mod hands;
|
||||
pub mod session;
|
||||
pub mod types;
|
||||
pub mod hands;
|
||||
|
||||
@@ -89,7 +89,9 @@ pub fn handle_session(
|
||||
}
|
||||
|
||||
/// A [`Condition`](bevy::ecs::schedule::Condition) that allows the system to run when the xr status changed to a specific [`XrStatus`].
|
||||
pub fn status_changed_to(status: XrStatus) -> impl FnMut(EventReader<XrStatusChanged>) -> bool + Clone {
|
||||
pub fn status_changed_to(
|
||||
status: XrStatus,
|
||||
) -> impl FnMut(EventReader<XrStatusChanged>) -> bool + Clone {
|
||||
move |mut reader: EventReader<XrStatusChanged>| {
|
||||
reader.read().any(|new_status| new_status.0 == status)
|
||||
}
|
||||
|
||||
@@ -2,5 +2,5 @@ use bevy::math::{Quat, Vec3};
|
||||
|
||||
pub struct Pose {
|
||||
pub position: Vec3,
|
||||
pub orientation: Quat
|
||||
}
|
||||
pub orientation: Quat,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user