changed to spatial bundle default

This commit is contained in:
ForTehLose
2024-09-03 20:14:48 -04:00
parent ac1364f4a6
commit 667c6092a7

View File

@@ -254,9 +254,9 @@ fn spawn_tracking_rig(
.create_reference_space(openxr::ReferenceSpaceType::VIEW, Transform::IDENTITY) .create_reference_space(openxr::ReferenceSpaceType::VIEW, Transform::IDENTITY)
.unwrap(); .unwrap();
let head = cmds let head = cmds
.spawn((SpatialBundle { ..default() }, HeadXRSpace(head_space))) .spawn((SpatialBundle::default(), HeadXRSpace(head_space)))
.id(); .id();
let local_floor = cmds.spawn((SpatialBundle { ..default() }, LocalFloor)).id(); let local_floor = cmds.spawn((SpatialBundle::default(), LocalFloor)).id();
let left_space = session let left_space = session
.create_action_space(&actions.left, openxr::Path::NULL, XrPose::IDENTITY) .create_action_space(&actions.left, openxr::Path::NULL, XrPose::IDENTITY)
@@ -265,10 +265,10 @@ fn spawn_tracking_rig(
.create_action_space(&actions.right, openxr::Path::NULL, XrPose::IDENTITY) .create_action_space(&actions.right, openxr::Path::NULL, XrPose::IDENTITY)
.unwrap(); .unwrap();
let left = cmds let left = cmds
.spawn((SpatialBundle { ..default() }, left_space, LeftGrip)) .spawn((SpatialBundle::default(), left_space, LeftGrip))
.id(); .id();
let right = cmds let right = cmds
.spawn((SpatialBundle { ..default() }, right_space, RightGrip)) .spawn((SpatialBundle::default(), right_space, RightGrip))
.id(); .id();
cmds.entity(root.single()) cmds.entity(root.single())