renamed a few things
This commit is contained in:
@@ -76,7 +76,7 @@ fn spawn_hands(
|
|||||||
XRTrackedRightGrip,
|
XRTrackedRightGrip,
|
||||||
);
|
);
|
||||||
let right = cmds.spawn(bundle).id();
|
let right = cmds.spawn(bundle).id();
|
||||||
//head?
|
//head
|
||||||
|
|
||||||
let head = cmds
|
let head = cmds
|
||||||
.spawn((
|
.spawn((
|
||||||
@@ -89,7 +89,7 @@ fn spawn_hands(
|
|||||||
XRTrackedView,
|
XRTrackedView,
|
||||||
))
|
))
|
||||||
.id();
|
.id();
|
||||||
//local_floor? emulated
|
//local_floor emulated
|
||||||
let local_floor = cmds
|
let local_floor = cmds
|
||||||
.spawn((
|
.spawn((
|
||||||
PbrBundle {
|
PbrBundle {
|
||||||
@@ -102,7 +102,7 @@ fn spawn_hands(
|
|||||||
))
|
))
|
||||||
.id();
|
.id();
|
||||||
|
|
||||||
let rooter = cmds
|
let stage = cmds
|
||||||
.spawn((
|
.spawn((
|
||||||
PbrBundle {
|
PbrBundle {
|
||||||
mesh: meshes.add(Cuboid::new(0.5, 0.1, 0.5)),
|
mesh: meshes.add(Cuboid::new(0.5, 0.1, 0.5)),
|
||||||
@@ -114,6 +114,6 @@ fn spawn_hands(
|
|||||||
))
|
))
|
||||||
.id();
|
.id();
|
||||||
|
|
||||||
cmds.entity(rooter)
|
cmds.entity(stage)
|
||||||
.push_children(&[left, right, head, local_floor]);
|
.push_children(&[left, right, head, local_floor]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user