• matching head movement with camera rotation (VRcontrols)
  • documentation

Code with testing in the browser

In particular look at

  1. the import of VRControls.js
    1. how it is applied (and to what object) using THREE.VRControls()
    2. even in it to see how the effect works if you are curious!

The cube is there but... there is a MISTAKE in the code (ok ok you got it by now... I sabotaged the code!). The problem is that you are not a wizard. What you head should move isn't the cube but rather the perspective of the camera. Fix it and enjoy the cube in... VR (yes well it's a lovely cube)!

Jump to Mission 3 to be able to interact with objects like a wizard on purpose this time!