aframe-reverse-look-controls-component

Fork of A-Frame v0.3.0 look controls component with reversed mouse drag.

Usage no npm install needed!

<script type="module">
  import aframeReverseLookControlsComponent from 'https://cdn.skypack.dev/aframe-reverse-look-controls-component';
</script>

README

aframe-reverse-look-controls

Usage

Browser Installation

Install and use by directly including the browser files:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.3.0/aframe.min.js"></script>
  <script src="https://unpkg.com/reverse-look-controls-component@3.0.0/dist/aframe-reverse-look-controls.min.js"></script>
</head>

<body>
  <a-scene>
    <a-entity camera reverse-look-controls></a-entity>
  </a-scene>
</body>

NPM Installation

Install via NPM:

npm install aframe-reverse-look-controls

Then register and use.

require('aframe');
require('aframe-reverse-look-controls');