question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The touch control doesn't work in the version 0.8.1

See original GitHub issue

Description:

  • A-Frame Version: 0.8.1
  • Platform / Device: VR PRIMUS VA4
  • Reproducible Code Snippet or URL:
<a-scene>
     <a-box position="-1 0.5 -3" rotation="0 45 0" color="#4CC3D9" shadow></a-box>
     <a-sphere position="0 1.25 -5" radius="1.25" color="#EF2D5E" shadow></a-sphere>
     <a-cylinder position="1 0.75 -3" radius="0.5" height="1.5" color="#FFC65D" shadow></a-cylinder>
     <a-plane position="0 0 -4" rotation="-90 0 0" width="4" height="4" color="#7BC8A4" shadow></a-plane>
     <a-sky color="#ECECEC"></a-sky>                
     <a-camera position="0 1.6 0" look-controls></a-camera>
</a-scene>

It touch control worked in the version 0.7.1. I this new version doesn’t works Also I tried something like

<a-entity id="rig"
          movement-controls
          position="25 0 25">
  <a-entity camera
            position="0 1.6 0"
            look-controls="pointerLockEnabled: true"></a-entity>
</a-entity>

but without success.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
machenmusikcommented, Mar 22, 2018

snippet from relevant tick handler:

tick: function (t, dt) {
    if (!this.data.enabled) { return; }
    // With latest master, it is recommended to manipulate object3D rotation directly.
    var rotation = this.el.object3D.rotation;
    // FIX: with A-Frame 0.8.x, need to modify pitchObject and yawObject of look-controls, if present.
    var lookControls = this.el.components['look-controls'];
    if (lookControls) { rotation = lookControls.pitchObject.rotation; }
    if (!rotation) { return; }
    if (this.directionX || this.directionY) {
      // Remember, object3D rotation is in radians!
      rotation.x += this.data.dx * THREE.Math.DEG2RAD * this.directionY;
      if (lookControls) { rotation = lookControls.yawObject.rotation; }
      rotation.y += this.data.dy * THREE.Math.DEG2RAD * this.directionX;
    }
  }
1reaction
dancespielecommented, Mar 22, 2018

If I use the same code in the version 0.7.1 the joystick works. If you for example click without glasses the button icon to go to VR you will see that after if you try to move the camera touching it doesn’t work with 0.8.1 but it works in 0.7.1. The joystick just rotate it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[HOW TO] OpenCore 0.8.0 > 0.8.1 differences | Page 3
I created a new "easy to install package" as per many requested (based on the official OpenCore). [The attached package updated to 0.8.0]...
Read more >
Audio Monitor | OBS Forums
Again, version 0.8.2 still crashing with Touch Portal, less, ... I'm just rating it 4 starts because 0.8.1 doesn't work with OBS 27.2.4...
Read more >
0.8.1 Release - OpenSimulator
Release Notes. General. Welcome to OpenSimulator 0.8.1, an open-source multi-user 3D virtual environment and metaverse server platform.
Read more >
Command Line Reference — Rally 0.8.1 documentation
Command line flags are used to change Rally's behavior but not all command line flags can be used for each subcommand. To find...
Read more >
WinCoot FAQ - GitHub Pages
For the usual Coot problems and bugs have a look at Paul's FAQ page. Often RTFM helps too, ... Which Windows version does...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found