A WebXR game for Meta Quest using Babylon.js with local development setup.
- ✅ Green grass ground environment
- ✅ Blue sky atmosphere
- ✅ Wooden stick that can be picked up and dropped
- ✅ WebXR support for Meta Quest
- ✅ Desktop testing with mouse controls
- ✅ Local HTTP and HTTPS development servers
- Install dependencies:
npm install- For HTTPS (required for Quest testing), generate certificates:
# On Windows
generate-cert.bat
# On Mac/Linux
openssl req -x509 -newkey rsa:4096 -keyout server.key -out server.cert -days 365 -nodes -subj "/CN=localhost"npm start
# or
npm run devVisit: http://localhost:8080
npm run https- Make sure your Quest and PC are on the same WiFi network
- Note your PC's local IP address from the console output
- On Meta Quest browser, navigate to:
https://YOUR_IP:8443 - Accept the security certificate warning
- Enter VR mode to test WebXR
- Click on wooden stick to pick it up
- Click elsewhere to drop it
- Point controller at wooden stick and squeeze trigger/grip to pick up
- Release trigger/grip to drop
index.html- Main HTML file with Babylon.js setupgame.js- Main game logic and WebXR implementationserver.js- HTTP development serverhttps-server.js- HTTPS server for Quest testinggenerate-cert.bat- Certificate generation script for Windows
- WebXR not working: Ensure you're using HTTPS and have accepted certificate warnings
- Controllers not responding: Make sure Quest controllers are turned on and tracking
- Can't connect from Quest: Verify both devices are on same network and firewall allows connection
- Add more interactive objects
- Implement hand tracking
- Add physics interactions
- Create more complex environments
- Add multiplayer support