Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mathdroid/simple-raycaster
👆 Simple raycaster (cursor) for ReactVR
https://github.com/mathdroid/simple-raycaster
Last synced: 5 days ago
JSON representation
👆 Simple raycaster (cursor) for ReactVR
- Host: GitHub
- URL: https://github.com/mathdroid/simple-raycaster
- Owner: mathdroid
- License: mit
- Created: 2017-04-22T04:33:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-11T10:58:09.000Z (over 6 years ago)
- Last Synced: 2024-08-08T22:53:22.484Z (3 months ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-raycaster
> 👆 Simple raycaster (cursor) for ReactVR
# Usage
In your `ReactVR`'s `client.js`:
```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 };
```
# LicenseMIT. See [License](./LICENSE)