Roaming the dungeon scene, slapping ragdoll NPCs, and throwing props for points.
Overview
Slap Simulator is a VR prototype where you roam a dungeon scene, smack ragdoll NPCs, and rack up points with props you can grab and throw.
I built it end to end: OpenXR setup, action-based input, hand animation and collisions, ragdoll tuning, a simple scoring UI, and an in-game title splash.
Architecture
Unity (Quest build), OpenXR, and the XR Interaction Toolkit with action-based input.
Custom hand system: an animated hand model with capsule colliders per joint and physics-based follow and rotation.
Ragdoll characters with joint constraints, friction and bounce materials, and hit reactions.
An audio manager for footsteps, impacts, and slap effects.
Gameplay and systems
Hands and collisions. Grip animates an open and closed fist; colliders on each finger segment drive physical hits. Follow and rotation use frame-rate-independent motion to reduce jitter.
Ragdoll reactions. NPCs idle until hit by a hand or tagged prop, then drop into ragdoll.
Grab and throw. Heads and props are grabbable; throws register impacts and award points.
Scoring. A lightweight AddScore and DisplayScore pair handles points and display.
Level and menu. Dungeon environment, title screen, ambient particles, and lighting.
Highlights
Moved from device-based to action-based XR input for cleaner mappings on Quest.
Hand animation plus per-joint physics colliders for satisfying slap contact.
Quaternion rotation follow with deltaTime smoothing to reduce jitter and startup drift.