diff --git a/src/vrplugin.rs b/src/vrplugin.rs index a3bd6ab..8698cf9 100644 --- a/src/vrplugin.rs +++ b/src/vrplugin.rs @@ -20,7 +20,7 @@ impl Plugin for VrPlugin { add_xr_plugins(DefaultPlugins.set(WindowPlugin { primary_window: Some(Window { title: "Kneeboard".into(), - resolution: WindowResolution::new(550, 720).with_scale_factor_override(1.0), + resolution: WindowResolution::new(550, 720), present_mode: PresentMode::AutoNoVsync, fit_canvas_to_parent: true, prevent_default_event_handling: false, @@ -52,7 +52,6 @@ impl Plugin for VrPlugin { }); app.add_systems(XrSessionCreated, create_view_space); - // .add_systems(Update, sync_head_with_camera.run_if(openxr_session_running)); } } @@ -71,12 +70,3 @@ pub fn create_view_space(session: Res, mut commands: Commands) { Transform::from_xyz(-2.5, 4.5, 9.0).looking_at(Vec3::ZERO, Vec3::Y), )); } - -// fn sync_head_with_camera( -// heads: Query<&Transform, With>, -// cameras: Query<&mut Transform, (With, Without)>, -// ) { -// for mut camera in cameras { -// *camera = *heads.single().unwrap(); -// } -// }