#!/bin/js
console.log("/root/index.js: hello world")

function doTHREE(){ 
  const scene = AFRAME.scenes[0].object3D
  const object = new THREE.Mesh(
      new THREE.BoxGeometry(1, 1, 1),
      new THREE.MeshBasicMaterial({ color: 0xff0000 })
  );
  object.position.set(0.3, 1.4, -0.4)
  object.scale.set(0.2,0.2,0.2)
  scene.add(object);
}

//doTHREE()  // uncomment this to test

// for [higherlevel] AFRAME markup see ~/index.html