Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.81 KB

File metadata and controls

55 lines (39 loc) · 1.81 KB

aframe-camera-transform-controls-component

Version License

A Camera Transform Controls component for A-Frame.

Recording component

API

Property Description Default Value
enabled true
cameraRigId Camera rig containing the camera and both controllers cameraRig
onStart Event used to start the panning or scale & rotate triggerdown
onEnd Event used to stop panning or scale & rotate triggerup
showHint Show a line between both controllers and the scale factor true

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.1/aframe.min.js"></script>
  <script src="https://unpkg.com/aframe-camera-transform-controls-component/dist/aframe-camera-transform-controls-component.min.js"></script>
</head>

<body>
  <a-scene camera-transform-controls="">
  </a-scene>
</body>

npm

Install via npm:

npm install aframe-camera-transform-controls-component

Then require and use.

require('aframe');
require('aframe-camera-transform-controls-component');