a-touch-controls
a-touch-controls copied to clipboard
Getting a THREE.js error when trying to use this library
Trying to use this replacement to get over some mobile usage issues but getting the following error when loading a scene. Any ideas on how this could be resolved. Tried using aframe 0.8.2 and 0.9.2
core:a-node:error Failure loading node: TypeError: THREE.VRControls is not a constructor
at NewComponent.setupHMDControls (a-touch-controls.js:118)
at NewComponent.init (a-touch-controls.js:38)
at NewComponent.initComponent (aframe-master.js:73568)
at NewComponent.updateProperties (aframe-master.js:73550)
at HTMLElement.updateComponent (aframe-master.js:72232)
at HTMLElement.updateComponents (aframe-master.js:72205)
at entityLoadCallback (aframe-master.js:71991)
at emitLoaded (aframe-master.js:72919)****
Looks like three.js r94 removed them. They're still present in r93. I'm not actively maintaining this project anymore, so I'm not sure what's the right way to make a controller instance in more recent versions of three.js