Skip to content

trickyc0d3r/webxr-physics

 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.8%
  • JavaScript 1.5%
  • HTML 0.7%