Welcome to VR Arcade, an interactive Virtual Reality project built in Unity. This project serves as a sandbox for various VR mechanics, physical interactions, and AI integrations, all housed within a central virtual arcade room.
The project utilizes the Unity XR Interaction Toolkit to provide smooth headset tracking, locomotion, and hand/controller interactions across several distinct experiences.
A fully playable, physically interactive chess game located in the main arcade room.
- Stockfish AI: Uses the world-class Stockfish engine running as a background process to calculate moves.
- Adjustable Difficulty: Configurable AI profiles ranging from beginner to Grandmaster (Levels 1-10), with adjustable search depths and think times.
- VR Mechanics: Players can physically grab and place chess pieces. Illegal moves are automatically rejected, and the piece smoothly animates back to its original square.
- Full Chess Rules: Fully supports castling, en passant, pawn promotion (with VR UI panels), and 50-move/threefold repetition draw detection.
A physical bowling simulator where players can grab, aim, and throw a bowling ball down the lane.
- Dynamic Audio: The bowling ball plays realistic rolling sounds when moving across the floor and hit sounds upon colliding with pins.
- Automatic Scoring: A live scoreboard tracks how many pins have been knocked down.
- Quick Reset: A dedicated reset button clears the lane, respawns a fresh set of pins, and resets the score to zero.
A spatial version of the classic game.
- Minimax Algorithm: The AI opponent uses the Minimax algorithm to ensure it never loses.
- Physical Input: Players make their moves by physically colliding with the designated cubes on the board.
- Auto-Reset: The game detects wins, losses, or ties and automatically resets the board after a brief delay.
- Sticky Arrows: An archery-style physics script (
stick.cs) that causes objects to freeze and stick perfectly to any surface they collide with, aligning to the surface normal. - Procedural Generation: A chessboard generator (
board_maker.cs) that spawns the board piece-by-piece in a nanobot-style assembly animation.
- Requirements: Unity Editor (configured for VR development), a compatible VR Headset (e.g., Meta Quest), and the Oculus/XR Interaction Toolkit packages installed.
- Main Scene: Open
Assets/Scenes/main.unityto explore the primary VR Arcade Room which houses the Chess and Bowling experiences. - Prefabs: Additional games like Tic-Tac-Toe can be found in the
Assets/prfapsfolder and dropped into any scene.
- Unity Engine
- Unity XR Interaction Toolkit
- Meta Voice SDK / Oculus Integration
- Stockfish Chess Engine (Executable integrated via standard I/O streams)