fix hand tracker spawn side bug

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2024-12-14 02:01:31 +01:00
parent afd62b3cc3
commit 361199e2c4
2 changed files with 5 additions and 5 deletions

View File

@@ -202,7 +202,7 @@ impl<B: Bundle> Command for SpawnHandTracker<B> {
let mut tracker = world.spawn(self.joints);
match &self.side {
HandSide::Left => tracker.insert(LeftHand),
HandSide::Right => tracker.insert(LeftHand),
HandSide::Right => tracker.insert(RightHand),
};
let tracker = tracker.id();
world.entity_mut(root).push_children(&[tracker]);