0.1.7 • Published 8 years ago

aframe-drag-look-controls-component v0.1.7

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

AFrame Drag Look Controls Component

This is basically same as look-controls component besides the canvas moves to the way you drag.

For detail, please check look-controls page.

DEMO

example

Properties

PropertyDescriptionDefault Value
enabledWhether look controls are enabled.true

Usage

The drag-look-controls component is usually used alongside the camera component.

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.2.0/aframe.min.js"></script>
  <script src="https://rawgit.com/mayognaise/aframe-drag-look-controls-component/master/dist/aframe-drag-look-controls-component.min.js"></script>
</head>

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

NPM Installation

Install via NPM:

npm i -D aframe-drag-look-controls-component

Then register and use.

import 'aframe'
import 'aframe-drag-look-controls-component'
0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago