8

How can I increase the speed of the WASD Controls for my WebVR page? Because now it goes really slow.

<a-entity position="0 1.8 0" camera look-controls wasd-controls>
  <a-camera id="camera">
    <a-cursor color="#333" maxDistance="30"></a-cursor>
  </a-camera>
</a-entity>
Don McCurdy
  • 10,975
  • 2
  • 37
  • 75
Dionoh
  • 396
  • 1
  • 6
  • 15

2 Answers2

11

The wasd-controls component has several options, described in the A-Frame v0.4.0 docs. Increasing acceleration, or decreasing easing, will both make the camera move faster.

<a-entity camera look-controls wasd-controls="acceleration: 100">
  <!-- ... -->
</a-entity>
Don McCurdy
  • 10,975
  • 2
  • 37
  • 75
0

The acceleration config does not affect top speed. If you are looking to change top speed, I made a fork of aframe that includes configs for speed as well as new features like gravity, look sensitivity, and Y-axis inversion.

Kiran Kota
  • 103
  • 1
  • 12