react-vr-6dof-raycaster
React VR 6DOF Raycaster
Taken from examples in the ReactVR library and extended to 6 degrees-of-freedom controllers (for Oculus and Vive).
Usage
In your ReactVR's vr/client.js
:
// Auto-generated content.// This file contains the boilerplate to set up your React app.// If you want to modify your application, start in "index.vr.js" // Auto-generated content.;; { const scene = ; const vr = bundle 'KenReactVR' parent // Add custom options here raycasters: scene scene: scene ...options ; vr { // Any custom behavior you want to perform on each frame goes here }; // Begin the animation loop vrstart; return vr;} windowReactVR = init;