added tracker markers and change detection

This commit is contained in:
Jay Christy
2023-09-24 01:34:20 -04:00
parent 9e69777a45
commit 8cea603cb5
5 changed files with 172 additions and 37 deletions

View File

@@ -223,6 +223,7 @@ pub fn xr_camera_head_sync(
mut query: Query<(&mut Transform, &XrCameraType, &mut XRProjection)>,
) {
let mut f = || -> Option<()> {
//TODO calculate HMD position
for (mut transform, camera_type, mut xr_projection) in query.iter_mut() {
let view_idx = match camera_type {
XrCameraType::Xr(eye) => *eye as usize,