webxr-look-to-select.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. <!DOCTYPE html><html lang="en"><head>
  2. <meta charset="utf-8">
  3. <title>VR - Look to Select</title>
  4. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  5. <meta name="twitter:card" content="summary_large_image">
  6. <meta name="twitter:site" content="@threejs">
  7. <meta name="twitter:title" content="Three.js – VR - Look to Select">
  8. <meta property="og:image" content="https://threejs.org/files/share.png">
  9. <link rel="shortcut icon" href="/files/favicon_white.ico" media="(prefers-color-scheme: dark)">
  10. <link rel="shortcut icon" href="/files/favicon.ico" media="(prefers-color-scheme: light)">
  11. <link rel="stylesheet" href="/manual/resources/lesson.css">
  12. <link rel="stylesheet" href="/manual/resources/lang.css">
  13. </head>
  14. <body>
  15. <div class="container">
  16. <div class="lesson-title">
  17. <h1>VR - Look to Select</h1>
  18. </div>
  19. <div class="lesson">
  20. <div class="lesson-main">
  21. <p><strong>NOTE: The examples on this page require a VR capable
  22. device. Without one they won't work. See <a href="webxr.html">previous article</a>
  23. as to why</strong></p>
  24. <p>In the <a href="webxr.html">previous article</a> we went over
  25. a very simple VR example using three.js and we discussed
  26. the various kinds of VR systems.</p>
  27. <p>The simplest and possibly most common is the Google Cardboard style of VR which
  28. is basically a phone put into a $5 - $50 face mask. This kind of VR has no
  29. controller so people have to come up with creative solutions for allowing user
  30. input.</p>
  31. <p>The most common solution is "look to select" where if the
  32. user points their head at something for a moment it gets
  33. selected.</p>
  34. <p>Let's implement "look to select"! We'll start with
  35. <a href="webxr.html">an example from the previous article</a>
  36. and to do it we'll add the <code class="notranslate" translate="no">PickHelper</code> we made in
  37. <a href="picking.html">the article on picking</a>. Here it is.</p>
  38. <pre class="prettyprint showlinemods notranslate lang-js" translate="no">class PickHelper {
  39. constructor() {
  40. this.raycaster = new THREE.Raycaster();
  41. this.pickedObject = null;
  42. this.pickedObjectSavedColor = 0;
  43. }
  44. pick(normalizedPosition, scene, camera, time) {
  45. // restore the color if there is a picked object
  46. if (this.pickedObject) {
  47. this.pickedObject.material.emissive.setHex(this.pickedObjectSavedColor);
  48. this.pickedObject = undefined;
  49. }
  50. // cast a ray through the frustum
  51. this.raycaster.setFromCamera(normalizedPosition, camera);
  52. // get the list of objects the ray intersected
  53. const intersectedObjects = this.raycaster.intersectObjects(scene.children);
  54. if (intersectedObjects.length) {
  55. // pick the first object. It's the closest one
  56. this.pickedObject = intersectedObjects[0].object;
  57. // save its color
  58. this.pickedObjectSavedColor = this.pickedObject.material.emissive.getHex();
  59. // set its emissive color to flashing red/yellow
  60. this.pickedObject.material.emissive.setHex((time * 8) % 2 &gt; 1 ? 0xFFFF00 : 0xFF0000);
  61. }
  62. }
  63. }
  64. </pre>
  65. <p>For an explanation of that code <a href="picking.html">see the article on picking</a>.</p>
  66. <p>To use it we just need to create an instance and call it in our render loop</p>
  67. <pre class="prettyprint showlinemods notranslate lang-js" translate="no">+const pickHelper = new PickHelper();
  68. ...
  69. function render(time) {
  70. time *= 0.001;
  71. ...
  72. + // 0, 0 is the center of the view in normalized coordinates.
  73. + pickHelper.pick({x: 0, y: 0}, scene, camera, time);
  74. </pre>
  75. <p>In the original picking example we converted the mouse coordinates
  76. from CSS pixels into normalized coordinates that go from -1 to +1
  77. across the canvas.</p>
  78. <p>In this case though we will always pick where the camera is
  79. facing which is the center of the screen so we pass in <code class="notranslate" translate="no">0</code> for
  80. both <code class="notranslate" translate="no">x</code> and <code class="notranslate" translate="no">y</code> which is the center in normalized coordinates.</p>
  81. <p>And with that objects will flash when we look at them</p>
  82. <p></p><div translate="no" class="threejs_example_container notranslate">
  83. <div><iframe class="threejs_example notranslate" translate="no" style=" " src="/manual/examples/resources/editor.html?url=/manual/examples/webxr-look-to-select.html"></iframe></div>
  84. <a class="threejs_center" href="/manual/examples/webxr-look-to-select.html" target="_blank">click here to open in a separate window</a>
  85. </div>
  86. <p></p>
  87. <p>Typically we don't want selection to be immediate. Instead we require the user
  88. to keep the camera on the thing they want to select for a few moments to give them
  89. a chance not to select something by accident.</p>
  90. <p>To do that we need some kind of meter or gauge or some way
  91. to convey that the user must keep looking and for how long.</p>
  92. <p>One easy way we could do that is to make a 2 color texture
  93. and use a texture offset to slide the texture across a model.</p>
  94. <p>Let's do this by itself to see it work before we add it to
  95. the VR example.</p>
  96. <p>First we make an <a href="/docs/#api/en/cameras/OrthographicCamera"><code class="notranslate" translate="no">OrthographicCamera</code></a></p>
  97. <pre class="prettyprint showlinemods notranslate lang-js" translate="no">const left = -2; // Use values for left
  98. const right = 2; // right, top and bottom
  99. const top = 1; // that match the default
  100. const bottom = -1; // canvas size.
  101. const near = -1;
  102. const far = 1;
  103. const camera = new THREE.OrthographicCamera(left, right, top, bottom, near, far);
  104. </pre>
  105. <p>And of course update it if the canvas changes size</p>
  106. <pre class="prettyprint showlinemods notranslate lang-js" translate="no">function render(time) {
  107. time *= 0.001;
  108. if (resizeRendererToDisplaySize(renderer)) {
  109. const canvas = renderer.domElement;
  110. const aspect = canvas.clientWidth / canvas.clientHeight;
  111. + camera.left = -aspect;
  112. + camera.right = aspect;
  113. camera.updateProjectionMatrix();
  114. }
  115. ...
  116. </pre>
  117. <p>We now have a camera that shows 2 units above and below the center and aspect units
  118. left and right.</p>
  119. <p>Next let's make a 2 color texture. We'll use a <a href="/docs/#api/en/textures/DataTexture"><code class="notranslate" translate="no">DataTexture</code></a>
  120. which we've used a few <a href="indexed-textures.html">other</a>
  121. <a href="post-processing-3dlut.html">places</a>.</p>
  122. <pre class="prettyprint showlinemods notranslate lang-js" translate="no">function makeDataTexture(data, width, height) {
  123. const texture = new THREE.DataTexture(data, width, height, THREE.RGBAFormat);
  124. texture.minFilter = THREE.NearestFilter;
  125. texture.magFilter = THREE.NearestFilter;
  126. texture.needsUpdate = true;
  127. return texture;
  128. }
  129. const cursorColors = new Uint8Array([
  130. 64, 64, 64, 64, // dark gray
  131. 255, 255, 255, 255, // white
  132. ]);
  133. const cursorTexture = makeDataTexture(cursorColors, 2, 1);
  134. </pre>
  135. <p>We'll then use that texture on a <a href="/docs/#api/en/geometries/TorusGeometry"><code class="notranslate" translate="no">TorusGeometry</code></a></p>
  136. <pre class="prettyprint showlinemods notranslate lang-js" translate="no">const ringRadius = 0.4;
  137. const tubeRadius = 0.1;
  138. const tubeSegments = 4;
  139. const ringSegments = 64;
  140. const cursorGeometry = new THREE.TorusGeometry(
  141. ringRadius, tubeRadius, tubeSegments, ringSegments);
  142. const cursorMaterial = new THREE.MeshBasicMaterial({
  143. color: 'white',
  144. map: cursorTexture,
  145. transparent: true,
  146. blending: THREE.CustomBlending,
  147. blendSrc: THREE.OneMinusDstColorFactor,
  148. blendDst: THREE.OneMinusSrcColorFactor,
  149. });
  150. const cursor = new THREE.Mesh(cursorGeometry, cursorMaterial);
  151. scene.add(cursor);
  152. </pre>
  153. <p>and then in <code class="notranslate" translate="no">render</code> lets adjust the texture's offset</p>
  154. <pre class="prettyprint showlinemods notranslate lang-js" translate="no">function render(time) {
  155. time *= 0.001;
  156. if (resizeRendererToDisplaySize(renderer)) {
  157. const canvas = renderer.domElement;
  158. const aspect = canvas.clientWidth / canvas.clientHeight;
  159. camera.left = -aspect;
  160. camera.right = aspect;
  161. camera.updateProjectionMatrix();
  162. }
  163. + const fromStart = 0;
  164. + const fromEnd = 2;
  165. + const toStart = -0.5;
  166. + const toEnd = 0.5;
  167. + cursorTexture.offset.x = THREE.MathUtils.mapLinear(
  168. + time % 2,
  169. + fromStart, fromEnd,
  170. + toStart, toEnd);
  171. renderer.render(scene, camera);
  172. }
  173. </pre>
  174. <p><code class="notranslate" translate="no">THREE.MathUtils.mapLinear</code> takes a value that goes between <code class="notranslate" translate="no">fromStart</code> and <code class="notranslate" translate="no">fromEnd</code>
  175. and maps it to a value between <code class="notranslate" translate="no">toStart</code> and <code class="notranslate" translate="no">toEnd</code>. In the case above we're
  176. taking <code class="notranslate" translate="no">time % 2</code> which means a value that goes from 0 to 2 and maps
  177. that to a value that goes from -0.5 to 0.5</p>
  178. <p><a href="textures.html">Textures</a> are mapped to geometry using normalized texture coordinates
  179. that go from 0 to 1. That means our 2x1 pixel image, set to the default
  180. wrapping mode of <code class="notranslate" translate="no">THREE.ClampToEdge</code>, if we adjust the
  181. texture coordinates by -0.5 then the entire mesh will be the first color
  182. and if we adjust the texture coordinates by +0.5 the entire mesh will
  183. be the second color. In between with the filtering set to <code class="notranslate" translate="no">THREE.NearestFilter</code>
  184. we'll be able to move the transition between the 2 colors through the geometry.</p>
  185. <p>Let's add a background texture while we're at it just like we
  186. covered in <a href="backgrounds.html">the article on backgrounds</a>.
  187. We'll just use a 2x2 set of colors but set the texture's repeat
  188. settings to give us an 8x8 grid. This will give our cursor something
  189. to be rendered over so we can check it against different colors.</p>
  190. <pre class="prettyprint showlinemods notranslate lang-js" translate="no">+const backgroundColors = new Uint8Array([
  191. + 0, 0, 0, 255, // black
  192. + 90, 38, 38, 255, // dark red
  193. + 100, 175, 103, 255, // medium green
  194. + 255, 239, 151, 255, // light yellow
  195. +]);
  196. +const backgroundTexture = makeDataTexture(backgroundColors, 2, 2);
  197. +backgroundTexture.wrapS = THREE.RepeatWrapping;
  198. +backgroundTexture.wrapT = THREE.RepeatWrapping;
  199. +backgroundTexture.repeat.set(4, 4);
  200. const scene = new THREE.Scene();
  201. +scene.background = backgroundTexture;
  202. </pre>
  203. <p>Now if we run that you'll see we get a circle like gauge
  204. and that we can set where the gauge is.</p>
  205. <p></p><div translate="no" class="threejs_example_container notranslate">
  206. <div><iframe class="threejs_example notranslate" translate="no" style=" " src="/manual/examples/resources/editor.html?url=/manual/examples/webxr-look-to-select-selector.html"></iframe></div>
  207. <a class="threejs_center" href="/manual/examples/webxr-look-to-select-selector.html" target="_blank">click here to open in a separate window</a>
  208. </div>
  209. <p></p>
  210. <p>A few things to notice <strong>and try</strong>.</p>
  211. <ul>
  212. <li><p>We set the <code class="notranslate" translate="no">cursorMaterial</code>'s <code class="notranslate" translate="no">blending</code>, <code class="notranslate" translate="no">blendSrc</code> and <code class="notranslate" translate="no">blendDst</code>
  213. properties as follows</p>
  214. <pre class="prettyprint showlinemods notranslate notranslate" translate="no"> blending: THREE.CustomBlending,
  215. blendSrc: THREE.OneMinusDstColorFactor,
  216. blendDst: THREE.OneMinusSrcColorFactor,
  217. </pre><p>This gives as an <em>inverse</em> type of effect. Comment out
  218. those 3 lines and you'll see the difference. I'm just guessing
  219. the inverse effect is best here as that way we can hopefully
  220. see the cursor regardless of the colors it is over.</p>
  221. </li>
  222. <li><p>We use a <a href="/docs/#api/en/geometries/TorusGeometry"><code class="notranslate" translate="no">TorusGeometry</code></a> and not a <a href="/docs/#api/en/geometries/RingGeometry"><code class="notranslate" translate="no">RingGeometry</code></a></p>
  223. <p>For whatever reason the <a href="/docs/#api/en/geometries/RingGeometry"><code class="notranslate" translate="no">RingGeometry</code></a> uses a flat
  224. UV mapping scheme. Because of this if we use a <a href="/docs/#api/en/geometries/RingGeometry"><code class="notranslate" translate="no">RingGeometry</code></a>
  225. the texture slides horizontally across the ring instead of
  226. around it like it does above.</p>
  227. <p>Try it out, change the <a href="/docs/#api/en/geometries/TorusGeometry"><code class="notranslate" translate="no">TorusGeometry</code></a> to a <a href="/docs/#api/en/geometries/RingGeometry"><code class="notranslate" translate="no">RingGeometry</code></a>
  228. (it's just commented out in the example above) and you'll see what I
  229. mean.</p>
  230. <p>The <em>proper</em> thing to do (for some definition of <em>proper</em>) would be
  231. to either use the <a href="/docs/#api/en/geometries/RingGeometry"><code class="notranslate" translate="no">RingGeometry</code></a> but fix the texture coordinates
  232. so they go around the ring. Or else, generate our own ring geometry.
  233. But, the torus works just fine. Placed directly in front of the camera
  234. with a <a href="/docs/#api/en/materials/MeshBasicMaterial"><code class="notranslate" translate="no">MeshBasicMaterial</code></a> it will look exactly like a ring and the
  235. texture coordinates go around the ring so it works for our needs.</p>
  236. </li>
  237. </ul>
  238. <p>Let's integrate it with our VR code above. </p>
  239. <pre class="prettyprint showlinemods notranslate lang-js" translate="no">class PickHelper {
  240. - constructor() {
  241. + constructor(camera) {
  242. this.raycaster = new THREE.Raycaster();
  243. this.pickedObject = null;
  244. - this.pickedObjectSavedColor = 0;
  245. + const cursorColors = new Uint8Array([
  246. + 64, 64, 64, 64, // dark gray
  247. + 255, 255, 255, 255, // white
  248. + ]);
  249. + this.cursorTexture = makeDataTexture(cursorColors, 2, 1);
  250. +
  251. + const ringRadius = 0.4;
  252. + const tubeRadius = 0.1;
  253. + const tubeSegments = 4;
  254. + const ringSegments = 64;
  255. + const cursorGeometry = new THREE.TorusGeometry(
  256. + ringRadius, tubeRadius, tubeSegments, ringSegments);
  257. +
  258. + const cursorMaterial = new THREE.MeshBasicMaterial({
  259. + color: 'white',
  260. + map: this.cursorTexture,
  261. + transparent: true,
  262. + blending: THREE.CustomBlending,
  263. + blendSrc: THREE.OneMinusDstColorFactor,
  264. + blendDst: THREE.OneMinusSrcColorFactor,
  265. + });
  266. + const cursor = new THREE.Mesh(cursorGeometry, cursorMaterial);
  267. + // add the cursor as a child of the camera
  268. + camera.add(cursor);
  269. + // and move it in front of the camera
  270. + cursor.position.z = -1;
  271. + const scale = 0.05;
  272. + cursor.scale.set(scale, scale, scale);
  273. + this.cursor = cursor;
  274. +
  275. + this.selectTimer = 0;
  276. + this.selectDuration = 2;
  277. + this.lastTime = 0;
  278. }
  279. pick(normalizedPosition, scene, camera, time) {
  280. + const elapsedTime = time - this.lastTime;
  281. + this.lastTime = time;
  282. - // restore the color if there is a picked object
  283. - if (this.pickedObject) {
  284. - this.pickedObject.material.emissive.setHex(this.pickedObjectSavedColor);
  285. - this.pickedObject = undefined;
  286. - }
  287. + const lastPickedObject = this.pickedObject;
  288. + this.pickedObject = undefined;
  289. // cast a ray through the frustum
  290. this.raycaster.setFromCamera(normalizedPosition, camera);
  291. // get the list of objects the ray intersected
  292. const intersectedObjects = this.raycaster.intersectObjects(scene.children);
  293. if (intersectedObjects.length) {
  294. // pick the first object. It's the closest one
  295. this.pickedObject = intersectedObjects[0].object;
  296. - // save its color
  297. - this.pickedObjectSavedColor = this.pickedObject.material.emissive.getHex();
  298. - // set its emissive color to flashing red/yellow
  299. - this.pickedObject.material.emissive.setHex((time * 8) % 2 &gt; 1 ? 0xFFFF00 : 0xFF0000);
  300. }
  301. + // show the cursor only if it's hitting something
  302. + this.cursor.visible = this.pickedObject ? true : false;
  303. +
  304. + let selected = false;
  305. +
  306. + // if we're looking at the same object as before
  307. + // increment time select timer
  308. + if (this.pickedObject &amp;&amp; lastPickedObject === this.pickedObject) {
  309. + this.selectTimer += elapsedTime;
  310. + if (this.selectTimer &gt;= this.selectDuration) {
  311. + this.selectTimer = 0;
  312. + selected = true;
  313. + }
  314. + } else {
  315. + this.selectTimer = 0;
  316. + }
  317. +
  318. + // set cursor material to show the timer state
  319. + const fromStart = 0;
  320. + const fromEnd = this.selectDuration;
  321. + const toStart = -0.5;
  322. + const toEnd = 0.5;
  323. + this.cursorTexture.offset.x = THREE.MathUtils.mapLinear(
  324. + this.selectTimer,
  325. + fromStart, fromEnd,
  326. + toStart, toEnd);
  327. +
  328. + return selected ? this.pickedObject : undefined;
  329. }
  330. }
  331. </pre>
  332. <p>You can see the code above we added all the code to create
  333. the cursor geometry, texture, and material and we added it
  334. as a child of the camera so it will always be in front of
  335. the camera. Note we need to add the camera to the scene
  336. otherwise the cursor won't be rendered.</p>
  337. <pre class="prettyprint showlinemods notranslate lang-js" translate="no">+scene.add(camera);
  338. </pre>
  339. <p>We then check if the thing we're picking this time is the same as it was last
  340. time. If so we add the elapsed time to a timer and if the timer reaches its
  341. limit we return the selected item.</p>
  342. <p>Now let's use that to pick the cubes. As a simple example
  343. we'll add 3 spheres as well. When a cube is picked with hide
  344. the cube and un-hide the corresponding sphere.</p>
  345. <p>So first we'll make a sphere geometry</p>
  346. <pre class="prettyprint showlinemods notranslate lang-js" translate="no">const boxWidth = 1;
  347. const boxHeight = 1;
  348. const boxDepth = 1;
  349. -const geometry = new THREE.BoxGeometry(boxWidth, boxHeight, boxDepth);
  350. +const boxGeometry = new THREE.BoxGeometry(boxWidth, boxHeight, boxDepth);
  351. +
  352. +const sphereRadius = 0.5;
  353. +const sphereGeometry = new THREE.SphereGeometry(sphereRadius);
  354. </pre>
  355. <p>Then let's create 3 pairs of box and sphere meshes. We'll
  356. use a <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map"><code class="notranslate" translate="no">Map</code></a>
  357. so that we can associate each <a href="/docs/#api/en/objects/Mesh"><code class="notranslate" translate="no">Mesh</code></a> with its partner.</p>
  358. <pre class="prettyprint showlinemods notranslate lang-js" translate="no">-const cubes = [
  359. - makeInstance(geometry, 0x44aa88, 0),
  360. - makeInstance(geometry, 0x8844aa, -2),
  361. - makeInstance(geometry, 0xaa8844, 2),
  362. -];
  363. +const meshToMeshMap = new Map();
  364. +[
  365. + { x: 0, boxColor: 0x44aa88, sphereColor: 0xFF4444, },
  366. + { x: 2, boxColor: 0x8844aa, sphereColor: 0x44FF44, },
  367. + { x: -2, boxColor: 0xaa8844, sphereColor: 0x4444FF, },
  368. +].forEach((info) =&gt; {
  369. + const {x, boxColor, sphereColor} = info;
  370. + const sphere = makeInstance(sphereGeometry, sphereColor, x);
  371. + const box = makeInstance(boxGeometry, boxColor, x);
  372. + // hide the sphere
  373. + sphere.visible = false;
  374. + // map the sphere to the box
  375. + meshToMeshMap.set(box, sphere);
  376. + // map the box to the sphere
  377. + meshToMeshMap.set(sphere, box);
  378. +});
  379. </pre>
  380. <p>In <code class="notranslate" translate="no">render</code> where we rotate the cubes we need to iterate over <code class="notranslate" translate="no">meshToMeshMap</code>
  381. instead of <code class="notranslate" translate="no">cubes</code>.</p>
  382. <pre class="prettyprint showlinemods notranslate lang-js" translate="no">-cubes.forEach((cube, ndx) =&gt; {
  383. +let ndx = 0;
  384. +for (const mesh of meshToMeshMap.keys()) {
  385. const speed = 1 + ndx * .1;
  386. const rot = time * speed;
  387. - cube.rotation.x = rot;
  388. - cube.rotation.y = rot;
  389. -});
  390. + mesh.rotation.x = rot;
  391. + mesh.rotation.y = rot;
  392. + ++ndx;
  393. +}
  394. </pre>
  395. <p>And now we can use our new <code class="notranslate" translate="no">PickHelper</code> implementation
  396. to select one of the objects. When selected we hide
  397. that object and un-hide its partner.</p>
  398. <pre class="prettyprint showlinemods notranslate lang-js" translate="no">// 0, 0 is the center of the view in normalized coordinates.
  399. -pickHelper.pick({x: 0, y: 0}, scene, camera, time);
  400. +const selectedObject = pickHelper.pick({x: 0, y: 0}, scene, camera, time);
  401. +if (selectedObject) {
  402. + selectedObject.visible = false;
  403. + const partnerObject = meshToMeshMap.get(selectedObject);
  404. + partnerObject.visible = true;
  405. +}
  406. </pre>
  407. <p>And with that we should have a pretty decent <em>look to select</em> implementation.</p>
  408. <p></p><div translate="no" class="threejs_example_container notranslate">
  409. <div><iframe class="threejs_example notranslate" translate="no" style=" " src="/manual/examples/resources/editor.html?url=/manual/examples/webxr-look-to-select-w-cursor.html"></iframe></div>
  410. <a class="threejs_center" href="/manual/examples/webxr-look-to-select-w-cursor.html" target="_blank">click here to open in a separate window</a>
  411. </div>
  412. <p></p>
  413. <p>I hope this example gave some ideas of how to implement a "look to select"
  414. type of Google Cardboard level UX. Sliding textures using texture coordinates
  415. offsets is also a commonly useful technique.</p>
  416. <p>Next up <a href="webxr-point-to-select.html">let's allow the user that has a VR controller to point at and move things</a>.</p>
  417. </div>
  418. </div>
  419. </div>
  420. <script src="/manual/resources/prettify.js"></script>
  421. <script src="/manual/resources/lesson.js"></script>
  422. </body></html>