Skip to content

Commit

Permalink
lite cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
ForTehLose committed Sep 24, 2023
1 parent 012a778 commit 6d5c1fa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
11 changes: 1 addition & 10 deletions examples/xr.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
use std::f32::consts::PI;
use std::time::Duration;

use bevy::diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin};
use bevy::prelude::Gizmos;
use bevy::prelude::*;
use bevy::transform::components::Transform;
use bevy_openxr::input::XrInput;
use bevy_openxr::resources::{XrFrameState, XrInstance, XrSession, XrViews};
use bevy_openxr::xr_input::debug_gizmos::OpenXrDebugRenderer;
use bevy_openxr::xr_input::oculus_touch::OculusController;
use bevy_openxr::xr_input::prototype_locomotion::{proto_locomotion, PrototypeLocomotionConfig};
use bevy_openxr::xr_input::trackers::{
adopt_open_xr_trackers, OpenXRController, OpenXRLeftController, OpenXRRightController,
OpenXRTracker, OpenXRTrackingRoot,
OpenXRController, OpenXRLeftController, OpenXRRightController, OpenXRTracker,
};
use bevy_openxr::xr_input::{Hand, QuatConv, Vec3Conv};
use bevy_openxr::DefaultXrPlugins;

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion src/xr_input/debug_gizmos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::{

use crate::xr_input::{
oculus_touch::{OculusController, OculusControllerRef},
Hand, QuatConv, Vec3Conv,
Hand,
};

use super::trackers::{OpenXRLeftController, OpenXRRightController, OpenXRTrackingRoot};
Expand Down
6 changes: 2 additions & 4 deletions src/xr_input/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ use crate::xr_input::oculus_touch::{setup_oculus_controller, ActionSets};
use crate::xr_input::xr_camera::{xr_camera_head_sync, Eye, XRProjection, XrCameraBundle};
use bevy::app::{App, PostUpdate, Startup};
use bevy::log::warn;
use bevy::prelude::{
default, Commands, Component, Plugin, PreUpdate, Quat, Res, SpatialBundle, Update, Vec3,
};
use bevy::prelude::{BuildChildren, IntoSystemConfigs};
use bevy::prelude::{Commands, Plugin, PreUpdate, Quat, Res, SpatialBundle, Update, Vec3};
use bevy::render::camera::CameraProjectionPlugin;
use bevy::render::view::{update_frusta, VisibilitySystems};
use bevy::transform::{TransformBundle, TransformSystem};
use bevy::transform::TransformSystem;

use self::trackers::{
adopt_open_xr_trackers, update_open_xr_controllers, OpenXRLeftEye, OpenXRRightEye,
Expand Down
2 changes: 1 addition & 1 deletion src/xr_input/trackers.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use bevy::prelude::{info, Added, BuildChildren, Commands, Component, Entity, Query, With, Res, Transform, Without};
use bevy::prelude::{Added, BuildChildren, Commands, Entity, Query, With, Res, Transform, Without, Component, info};

use crate::{resources::{XrFrameState, XrInstance, XrSession}, input::XrInput};

Expand Down

0 comments on commit 6d5c1fa

Please sign in to comment.