arpu / webxr-physics

Adds physics to WebXR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebXR Physics

This is a follow-up project of the WebVR Physics project, with the following updates:

  • Replaced the WebVR API with the new WebXR API, while still focusing on VR.
  • Migrated the codebase to TypeScript and webpack.

It combines the Cannon.js physics library with the Ray Input library. Spatial audio is added using the Resonance Audio Web SDK.

Tested with Oculus Go headset + controller

Prerequisite

In Chrome, enable WebVR in the chrome://flags page.

Usage

cd basic
npm install
npm start 

Screenshot

alt screenshot

About

Adds physics to WebXR

License:GNU General Public License v3.0


Languages

Language:TypeScript 97.2%Language:JavaScript 1.6%Language:HTML 1.1%