Socket
Socket
Sign inDemoInstall

aframe-4dof-controls-component

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

aframe-4dof-controls-component


Version published
Maintainers
1
Install size
34.3 kB
Created

Readme

Source

aframe-4dof-controls-component

Version License

A 4dof Controls component for A-Frame.

For A-Frame.

API

PropertyDescriptionDefault Value
eventsList of events to redirect to the target element.
lengthMaximum length to move the target element2
maxAngleMaximum angle to rotate on Z115
minAngleMinimum angle to rotate on Z0
targetSelector for the target element, if not defined it will default to the first child of the element.

Installation

Browser

Install and use by directly including the browser files:

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

<body>
  <a-scene>
    <a-entity daydream-controls gearvr-controls 4dof-controls>
      <a-entity><!-- hand --></a-entity>
    </a-entity>
  </a-scene>
</body>
npm

Install via npm:

npm install aframe-4dof-controls-component

Then require and use.

require('aframe');
require('aframe-4dof-controls-component');

Keywords

FAQs

Last updated on 01 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc