push left hand bones as children of root as well

This commit is contained in:
Jay Christy
2024-05-23 14:16:29 -04:00
parent 1962630034
commit 6feb3de9fb

View File

@@ -79,6 +79,7 @@ fn spawn_default_hands(
let bone_right = cmds let bone_right = cmds
.spawn((SpatialBundle::default(), bone, HandBoneRadius(0.0))) .spawn((SpatialBundle::default(), bone, HandBoneRadius(0.0)))
.id(); .id();
cmds.entity(root).push_children(&[bone_left]);
cmds.entity(root).push_children(&[bone_right]); cmds.entity(root).push_children(&[bone_right]);
left_bones[bone as usize] = bone_left; left_bones[bone as usize] = bone_left;
right_bones[bone as usize] = bone_right; right_bones[bone as usize] = bone_right;