Collect coins while cleaning ya room...
Note: Entire project is under "Spatial Sweeper" because I was not thinking of releasing the app.
VisionVacuumDemo.mp4
- Some real vacuum handles may cause erratic behavior with the hand tracking if a portion of your hand is obscured by the handle.
- As a result, the scoreboard is attached to your head when opting to use a 'Real' vacuum.
- To see visualize hand position and direction:
// on updateFrame
let handViz = getVisualizedBox(name: "hand", color: .red, size: 0.02)
handViz.transform = transform
let handDirection = getVisualizedBox(name: "handDirection", color: .yellow, size: 0.02, parent: handViz)
handDirection.position = .init(x: -1.0, y: 0.0, z: 0.0)
- the_gonchar (twitter)
- For his awesome tutorial this entire thing is based on.
- There's a repository available if you prefer to fork it directly. However, I followed the tutorial to learn more about RealityKit, and I cannot recommend it enough!
- Coin Model by AB (sketchfab)
- Virtual Vacuum Model by annzep (sketchfab)
- Used the middle model and stripped away as much unnecessary content as possible.
- Coin Collect Sound by Pixabay (Pixabay)
- Please do contribute! Issues and pull requests are welcomed.
- Thanks in advance for all efforts!
- Please keep in mind reviews may take time, so patience is appreciated.