4.0.1 • Published 5 years ago

aframe-joystick v4.0.1

Weekly downloads
136
License
-
Repository
-
Last release
5 years ago

aframe-joystick

An aframe component for "wasd"-like motion on mobile. Demo here: https://sour-lyric.glitch.me/

Many thanks to @yoannmoinet for creating NippleJS. This project is 95% NippleJS with a small adaptation for A-Frame

Usage

Step 1

You'll need to include the script in your project:

<script src="https://cdn.jsdelivr.net/npm/aframe-joystick@4.0.0/joystick.js"></script>

Step 2

Second, add id="camera" to your camera element, or create a new camera entity with id="camera":

<a-entity camera id="camera" position="0 1.6 0" look-controls wasd-controls>

Step 3

Add joystick to your a-scene element

<a-scene joystick>

Step 4 (optional, but recommended)

If you are using the joystick to replace VR controls, then you'll probably want to hide the vr-mode-ui button. Do this by adding vr-mode-ui="enabled: false" to your a-scene element (example below):

<a-scene joystick vr-mode-ui="enabled: false">
4.0.1

5 years ago

4.0.0

5 years ago

3.9.9

5 years ago

3.9.6

5 years ago

3.9.5

5 years ago

3.9.4

5 years ago

3.9.3

5 years ago

3.9.2

5 years ago

3.9.0

5 years ago

3.8.0

5 years ago

3.7.0

5 years ago

3.6.0

5 years ago

3.5.0

5 years ago

3.4.0

5 years ago

3.3.0

5 years ago

3.2.0

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.9.0

5 years ago

2.8.0

5 years ago

2.7.0

5 years ago

2.6.0

5 years ago

2.5.0

5 years ago

2.4.0

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.9.0

5 years ago

1.8.0

5 years ago

1.7.0

5 years ago

1.6.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago