no need for this

This commit is contained in:
2026-02-21 14:34:43 +01:00
parent 99c06d3419
commit a152eeadc6

View File

@@ -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<OxrSession>, 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<Headset>>,
// cameras: Query<&mut Transform, (With<MainCamera>, Without<Headset>)>,
// ) {
// for mut camera in cameras {
// *camera = *heads.single().unwrap();
// }
// }