fixed shakiness B)

This commit is contained in:
awtterpip
2023-09-11 16:35:56 -05:00
parent 23e53270b3
commit f720f54533
4 changed files with 6 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ pub mod oculus_touch;
pub mod xr_camera;
use crate::resources::XrSession;
use crate::xr_begin_frame;
use crate::xr_input::controllers::XrControllerType;
use crate::xr_input::oculus_touch::{setup_oculus_controller, ActionSets};
use crate::xr_input::xr_camera::{
@@ -38,7 +39,7 @@ impl Plugin for OpenXrInput {
}
}
app.add_systems(PreUpdate, action_set_system);
app.add_systems(PreUpdate, xr_camera_head_sync);
app.add_systems(PreUpdate, xr_camera_head_sync.after(xr_begin_frame));
app.add_systems(
PostUpdate,
update_frusta::<XRProjection>