Merge pull request #106 from awtterpip/fix-left-hand

push left hand bones as children of root as well
This commit is contained in:
Schmarni
2024-05-27 21:25:54 +02:00
committed by GitHub

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;