-
-
Welcome: a calm CPR training room, hands-only from the first second
-
The training lab: bays, mats and a re-centre-able manikin
-
Translucent chest window: ribs, sternum and heart, with the target zone outlined
-
Results: placement, rhythm, release, response and tracking, plus trend, stars and badges
-
Live compressions: rate gauge (109/min), count, release and tracking feedback
-
Hands on the ribs are rejected with 'move to the centre'
-
Simulated 999 call on speaker, then check breathing while it connects (RCUK 2025)
-
Stack and interlock your hands: detected from hand tracking
Inspiration
What if learning to save a life was something you could experience rather than simply watch?
Traditional first-aid training relies on instructional videos, classroom demonstrations and physical manikins, and a refresher only happens when staff, a trainer and the equipment are in one room at the same time. At Omega Digital we build training for health, social care, education and workplace safety, and we see how quickly CPR confidence fades between sessions. The Resuscitation Council UK 2025 education guidance recommends real-time feedback, gamified learning and spaced practice.
Our vision was simple: put on a headset, see a patient in front of you, and use your own hands to practise CPR in a few minutes, with no controllers.
What it does
CPR Alive is an adult hands-only CPR rehearsal for Meta Quest that follows the RCUK 2025 Adult Basic Life Support sequence, set in a calm virtual training room:
- Check it's safe → shake and shout → call 999 on speaker (a clearly labelled simulated call) → check breathing while the call connects.
- Find the lower half of the sternum. A translucent chest window shows the ribs, sternum and heart, and the target zone is outlined. Placing your hands on the ribs is rejected with a "move to the centre" prompt.
- Stack and interlock your hands. It detects whether one hand is on top of the other.
- Compress. Every push-and-release is counted. A live rate gauge, an optional 110/min metronome and voice coaching tell you to go faster or slower, to allow full return and to make a bigger movement.
- Results dashboard: rate, consistency, placement, release and tracking quality, plus stars, badges and a trend chart of your past sessions, so you have a reason to come back and beat your last round. There is also a 60-second challenge mode.
Hands-first and seated-friendly: everything, every button included, is done with bare hands using large poke targets. You can kneel with a cushion, kneel at the mat, or sit or stand at a raised couch. There's a re-centre button, a pause, and an automatic safety pause if your hands go near the real floor.
Kneel + cushion mode: rest your stacked hands on a firm cushion and the virtual sternum lines up underneath them. You push into something soft and real, and the recoil feels natural.
Honest by design: CPR Alive measures virtual hand movement, not real compression force or chest depth, and says so on the results screen. It supplements certified practical CPR training; it doesn't replace it.
How we built it
- Unity 6 (6000.6), URP, OpenXR + Meta XR Core / Interaction SDK v207 and XR Hands, running standalone on Meta Quest 2 at a steady 72 fps.
- High-frequency hand tracking (Fast Motion Mode) for fast, repetitive compressions.
- An engine-free C# CPR engine: a tracking-confidence gate, stacked-hand and interlock detection, sternum placement, a compression-cycle detector with hysteresis and a refractory period, rhythm from a rolling median, coaching rules, and a scenario state machine.
- HandFusion: when hands are stacked, the top hand blocks the headset's view of the bottom one. Once a correct stack is verified, we learn the offset between the hands and keep counting from whichever hand is tracked with high confidence. This means no phantom counts and no penalties for sensor dropouts.
- 20+ automated tests feed synthetic 72 Hz hand data through the same engine the headset uses: jitter, occlusion, ribs placement, push-and-hold, too fast or too slow, and tracking loss.
- Procedural art: the manikin is generated from signed-distance-field anatomy in Python, then assembled with compression blend shapes by deterministic Blender scripts. A custom URP shader draws the translucent chest window. The training room is scripted in Blender with baked lighting, and the Unity scene itself is generated from code.
- The hands UI follows Meta's guidance: panels at 44 cm, large hit targets and readable type. Claude supported development, debugging and automated testing.
Challenges we ran into
- Overlapping hands: the CPR posture is the worst case for camera-based hand tracking. HandFusion, plus honest "one hand visible – still counting" messaging, solved it.
- Counting without cheating: hand jitter while you hold still, or pushing down and holding, must never count. We used hysteresis, a stable reference height and a refractory period, all covered by tests.
- No real surface: VR-only CPR has nothing to push against. The cushion alignment mode gives your hands a real surface without pretending it's a sensor.
- Realism vs performance: a detailed manikin and room on standalone hardware, kept at 72 fps with baked lighting, light probes and decimated meshes.
Accomplishments that we're proud of
- A complete, guided CPR scenario that works end to end with bare hands, from the safety check to the results screen.
- Feedback on every compression for placement, rate and release, plus progression and replay.
- Tested and running on a real Quest 2, and it holds up when hand tracking is interrupted.
What we learned
A meaningful hand-tracking experience takes more than detecting gestures. The interaction has to be intuitive, forgiving of tracking interruptions, and designed around how people naturally move. We also learned how important it is to separate virtual feedback from medically validated performance.
What's next for CPR Alive
- Review of the wording and sequence by a qualified UK CPR trainer.
- AED familiarisation, the 30:2 rescue-breaths branch, an instructor mode, and setting packs (care home, school, office).
- Child and infant scenarios, a professional voice-over, and a more lifelike manikin face.
- Connecting immersive practice with our wider training platform for health, social care, education and workplace safety.
- Target launch on the Meta Horizon Store: March 2027 (provisional).
Our goal is simple: make important training more interactive, memorable and accessible through virtual reality.
