A-Frame (javascipt): How to grab an object

A-Frame WebVR
  • Mawrk123
    Likes 0

    Problem Description

    Hi,
    Can somebody tell me how I can “grab a box” in A-frame?
    With “grab” I mean make sure that i see the box right in front of my camera when I look at it.
    I already have the following code:

    window.onload = function() {
        var camera = document.getElementById("camera1")

        camera.addEventListener("mouseenter", function(){
           
        });

    }

    Can anybody help me solve this?

  • Sonar Systems admin
    Likes 0

    What version of A-Frame are you using.

Login to reply