https://github.com/timwis/aframe-fps-look-controls-component
A-Frame component to enable FPS-style looking
https://github.com/timwis/aframe-fps-look-controls-component
Last synced: 25 days ago
JSON representation
A-Frame component to enable FPS-style looking
- Host: GitHub
- URL: https://github.com/timwis/aframe-fps-look-controls-component
- Owner: timwis
- License: mit
- Created: 2018-01-06T19:20:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-06T21:17:58.000Z (over 7 years ago)
- Last Synced: 2025-03-25T08:42:52.004Z (about 1 month ago)
- Language: JavaScript
- Homepage: http://timwis.com/aframe-fps-look-controls-component/
- Size: 20.1 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## aframe-fps-look-controls-component
[](https://npmjs.org/package/aframe-fps-look-controls-component)
[](https://npmjs.org/package/aframe-fps-look-controls-component)[A-Frame](https://aframe.io) component to enable first-person shooter (FPS)-style mouse looking: move the mouse to look around, without needing to hold the button down.
Heavily based on prior art by [@cemkod](https://github.com/cemkod/aframe-fps-look-component).
### API
| Property | Description | Default Value |
| -------- | ----------- | ------------- |
| user-height | How much height to add to the camera | 1.6 |### Installation
#### Browser
Install and use by directly including the [browser files](dist):
```html
My A-Frame Scene
```
#### npm
Install via npm:
```bash
npm install aframe-fps-look-controls-component
```Then require and use.
```js
require('aframe');
require('aframe-fps-look-controls-component');
```