aframe-4dof-controls-component
A 4dof Controls component for A-Frame.
For A-Frame.
API
Property | Description | Default Value |
---|---|---|
events | List of events to redirect to the target element. | |
length | Maximum length to move the target element | 2 |
maxAngle | Maximum angle to rotate on Z | 115 |
minAngle | Minimum angle to rotate on Z | 0 |
target | Selector 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:
My A-Frame Scene <!-- hand -->
npm
Install via npm:
npm install aframe-4dof-controls-component
Then require and use.
;;