simple-raycaster

1.1.0¬†‚Äʬ†Public¬†‚Äʬ†Published

simple-raycaster

ūüĎÜ Simple raycaster (cursor) for ReactVR

Usage

In your ReactVR's client.js:

import { VRInstance } from "react-vr-web";
import * as SimpleRaycaster from "simple-raycaster";
 
function init(bundle, parent, options) {
  const vr = new VRInstance(bundle, "librarytests", parent, {
    raycasters: [
      SimpleRaycaster // Add SimpleRaycaster to the options
    ],
    cursorVisibility: "auto", // Add cursorVisibility
    ...options
  });
  vr.start();
  return vr;
}
 
window.ReactVR = { init };

License

MIT. See License

Readme

Keywords

none

Package Sidebar

Install

npm i simple-raycaster

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

2.5 kB

Total Files

4

Last publish

Collaborators

  • mathdroid