An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

## aframe-fps-look-controls-component

[![Version](http://img.shields.io/npm/v/aframe-fps-look-controls-component.svg?style=flat-square)](https://npmjs.org/package/aframe-fps-look-controls-component)
[![License](http://img.shields.io/npm/l/aframe-fps-look-controls-component.svg?style=flat-square)](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');
```