From 6feb3de9fb1646b73d9c09e6bfb736a102c14915 Mon Sep 17 00:00:00 2001 From: Jay Christy Date: Thu, 23 May 2024 14:16:29 -0400 Subject: [PATCH] push left hand bones as children of root as well --- crates/bevy_openxr/src/openxr/features/handtracking.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/bevy_openxr/src/openxr/features/handtracking.rs b/crates/bevy_openxr/src/openxr/features/handtracking.rs index 9305c55..e0dde02 100644 --- a/crates/bevy_openxr/src/openxr/features/handtracking.rs +++ b/crates/bevy_openxr/src/openxr/features/handtracking.rs @@ -79,6 +79,7 @@ fn spawn_default_hands( let bone_right = cmds .spawn((SpatialBundle::default(), bone, HandBoneRadius(0.0))) .id(); + cmds.entity(root).push_children(&[bone_left]); cmds.entity(root).push_children(&[bone_right]); left_bones[bone as usize] = bone_left; right_bones[bone as usize] = bone_right;