Inspiration
I grew up playing backyard cricket, where the "stumps" were usually a trash can and the bowler was whoever was annoyed with you that day. I wanted that feeling in VR: a quick, silly, physical game where you stand your ground and swing. Then I swapped the bowlers for cute fruit-launching robots, and the trash can became a smoothie stump you have to keep clean.
What it does
Stump the Smoothie is a hands-first batting game for Meta Quest.
- Colour-coded fruit throwers dance along the boundary, pause to telegraph, then fire real ballistic shots at your stump.
- The bat sits in your right hand in a natural handshake grip, and you smash the fruit back into the stadium. Pinch to trigger an assisted "defence" swing. No controllers needed, though they still work.
- Ground shadows and strike rings show where each fruit will land, so you can read the shot before it reaches you.
- You get three lives and three difficulty levels. Harder levels add more throwers, faster dancing, quicker shots and a smaller bat.
- Free Mode lets you tune every setting with simple +/− steppers and play with infinite lives.
- Seated Mode moves the stump within reach and adds reach and swing assist, so you can play the whole game from a chair.
- Instant Replay: when the match ends, the game rebuilds your last 20 seconds as a ghost cricket batter. You can orbit around it, switch camera shots, slow it down and save it as a video.
How I built it
Unity 6.3 + URP, OpenXR with Unity OpenXR Meta, XR Interaction Toolkit 3.5 and XR Hands.
Everything is generated by code. One editor tool builds the whole scene, the throwers, materials, skybox and sound effects. No imported art at all. When I want to change the stadium, I change the generator and rebuild.
Ballistics. Each thrower solves for the launch velocity that lands the fruit on the stump after a chosen flight time T: v0 = (target − start − ½·g·T²) / T. Difficulty and Free Mode only change T, so the shots stay fair and readable at every speed.
Bat physics. A kinematic bat that tracks hand velocity, a generous sweet-spot collider and a small deflection assist, so fast swings don't pass straight through the fruit.
Replay. A 30 Hz ring buffer records the head, hands, bat and every fruit. On playback, an IK ghost batter built from procedural meshes re-acts your swing, and a second camera renders it onto an in-world screen.
Challenges I ran into
- I don't own a headset. Everything was built and tested in the XR Interaction Simulator and the Meta XR Simulator, which meant learning their hand poses and input quirks very well.
- Tunneling. In VR a swing can move the bat further in one frame than the fruit is wide, so hits went missing. Fixing it took velocity tracking, a bigger hit volume and the deflection assist working together.
- Hand tracking surprises. When hands are tracked, XRI turns off the controller objects, so the bat and the replay recorder suddenly had nothing to follow. Both now fall back to the hand's own grip pose.
- A grip that feels human. Getting the bat to sit in the hand like a real handshake grip took several rounds of tuning against the hand-joint axes, plus a "locked hand" visual so your hand looks like it's actually holding the handle.
- Menus with hands only. Pointing at menus while holding a bat clashed, so the menu ray turns on only when your hand is actually aimed at a menu.
Accomplishments that I'm proud of
- A complete, polished game loop (lobby, match, game over, replay) made by one person in about two weeks.
- It's fully playable with bare hands and fully playable seated.
- The instant replay with a ghost batter. It's the moment people laugh at their own swing, and the reason they hit "play again".
- Zero imported art or audio: every mesh, material and sound comes from code.
What I learned
- In VR, comfort and readability matter more than difficulty. Telegraphing a shot makes the game feel fair.
- Hand tracking needs its own design, not just a controller fallback.
- Building the world from code made fast iteration possible, even without a headset.
What's next for Stump the Smoothie
- A passthrough mode that places the stump on your real floor.
- Progression and unlocks: new bats, stadiums and fruit types.
- Online leaderboards and shareable replay clips.
- Testing on real Quest hardware and a store launch.