0.1.2 • Published 7 years ago

whs-vrkit v0.1.2

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

whs-vrkit - Modules for VR

Based on VRControls and VREffect

NPM

Usage

const app = new WHS.App([
  new WHS.ElementModule(), // This module is required
  // other modules
  new VRKit.VRModule() // enables VR
]);

API

new VRKit.VRModule({message = true, button = true})

Parameters:

  • message - Boolean. Defines whether show message about VR displays.
  • button - Boolean. ...whether add button to enter VR mode.

new VRKit.VRControls()

app.module(
  new VRKit.VRControls({
    object: app.manager.get('camera')
  })
);

Parameters:

  • object - Object3D. An object controlled by VR (usually camera).
  • intensity - Number. Move intensity.

manager

VRModule is defined as vr.

Screenshot

npm.io

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago