1
0

XRControllerModel.html 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>XRControllerModel - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Object3D.html">Object3D</a> → </p>
  13. <h1 translate="no">XRControllerModel</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Represents a XR controller model.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="XRControllerModel" translate="no">new <a href="#XRControllerModel">XRControllerModel</a><span class="signature">()</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Constructs a new XR controller model.</p>
  25. </div>
  26. </div>
  27. </div>
  28. <h2 class="subsection-title">Properties</h2>
  29. <div class="member">
  30. <h3 class="name" id="envMap" translate="no">.<a href="#envMap">envMap</a><span class="type-signature"> : <a href="Texture.html">Texture</a></span> </h3>
  31. <div class="description">
  32. <p>The controller's environment map.</p>
  33. <p>Default is <code>null</code>.</p>
  34. </div>
  35. </div>
  36. <div class="member">
  37. <h3 class="name" id="motionController" translate="no">.<a href="#motionController">motionController</a><span class="type-signature"> : MotionController</span> </h3>
  38. <div class="description">
  39. <p>The motion controller.</p>
  40. <p>Default is <code>null</code>.</p>
  41. </div>
  42. </div>
  43. <h2 class="subsection-title">Methods</h2>
  44. <h3 class="name name-method" id="setEnvironmentMap" translate="no">.<a href="#setEnvironmentMap">setEnvironmentMap</a><span class="signature">( envMap : <span class="param-type"><a href="Texture.html">Texture</a></span> )</span><span class="type-signature"> : <a href="XRControllerModel.html">XRControllerModel</a></span> </h3>
  45. <div class="method">
  46. <div class="description">
  47. <p>Sets an environment map that is applied to the controller model.</p>
  48. </div>
  49. <table class="params">
  50. <tbody>
  51. <tr>
  52. <td class="name">
  53. <strong>envMap</strong>
  54. </td>
  55. <td class="description last">
  56. <p>The environment map to apply.</p>
  57. </td>
  58. </tr>
  59. </tbody>
  60. </table>
  61. <dl class="details">
  62. <dt class="tag-returns"><strong>Returns:</strong> A reference to this instance.</dt>
  63. </dl>
  64. </div>
  65. <h3 class="name name-method" id="updateMatrixWorld" translate="no">.<a href="#updateMatrixWorld">updateMatrixWorld</a><span class="signature">( force : <span class="param-type">boolean</span> )</span> </h3>
  66. <div class="method">
  67. <div class="description">
  68. <p>Overwritten with a custom implementation. Polls data from the XRInputSource and updates the
  69. model's components to match the real world data.</p>
  70. </div>
  71. <table class="params">
  72. <tbody>
  73. <tr>
  74. <td class="name">
  75. <strong>force</strong>
  76. </td>
  77. <td class="description last">
  78. <p>When set to <code>true</code>, a recomputation of world matrices is forced even
  79. when <a href="Object3D.html#matrixWorldAutoUpdate">Object3D#matrixWorldAutoUpdate</a> is set to <code>false</code>.</p>
  80. <p>Default is <code>false</code>.</p>
  81. </td>
  82. </tr>
  83. </tbody>
  84. </table>
  85. <dl class="details">
  86. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Object3D.html#updateMatrixWorld">Object3D#updateMatrixWorld</a></dt>
  87. </dl>
  88. </div>
  89. <h2 class="subsection-title">Source</h2>
  90. <p>
  91. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/webxr/XRControllerModelFactory.js" translate="no" target="_blank" rel="noopener">examples/jsm/webxr/XRControllerModelFactory.js</a>
  92. </p>
  93. </article>
  94. </section>
  95. <script src="../scripts/linenumber.js"></script>
  96. <script src="../scripts/page.js"></script>
  97. </body>
  98. </html>
粤ICP备19079148号