0.8.0 • Published 9 months ago

aframe-yawvr-component v0.8.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

aframe-yawvr-component

Version License

A component to control the Yaw VR motion simulator. Rotation value applied to an entity are communicated to the Yaw VR Simulator by this component.

For A-Frame.

Tested only in the YawVR Emulator for now.

API

PropertyDescriptionDefault Value
appnameThe name of the app that will be registered in the simulator. To guarantee that only one instance controls the simulator, app names are appended with an UUID before registration.'myApp'
rateThe number of position messages sent to the simulator, per second.10
yawlimitYaw limit (see Yaw VR Configuration software)180
pitchforwardlimitPitch forward limit (see Yaw VR Configuration software)15
pitchbackwardlimitPitch backward limit (see Yaw VR Configuration software)55
rolllimitRoll limit (see Yaw VR Configuration software)20
middlewareaddressCommunication between the web XR app and the simulator requires a middleware. This is the address for that middleware. If empty, the component will use a service discovery server to try to find the middleware' '
servicediscoveryaddressThe address of a service discovery server that the middleware registers to.'https://hmd-link-service.glitch.me'

Examples

Installation

Browser

Install and use by directly including the browser files:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
  <script src="https://unpkg.com/aframe-yawvr-component@0.7.0/dist/aframe-yawvr-component.min.js"></script>
</head>

<body>
  <a-scene>
    <a-entity yawvr animation="property: rotation; from: 0 -30 -45; to: 0 30 45; dur: 2000; loop: true; dir: alternate; easing: linear" ></a-entity>
  </a-scene>
</body>

npm

Install via npm:

npm install aframe-yawvr-component

Then require and use.

require('aframe');
require('aframe-yawvr-component');
0.8.0

9 months ago

0.7.1

10 months ago

0.7.0

11 months ago

0.6.0

11 months ago

0.5.0

11 months ago