ModelNode.html 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>ModelNode - 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="Node.html">Node</a> → <a href="Object3DNode.html">Object3DNode</a> → </p>
  13. <h1 translate="no">ModelNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This type of node is a specialized version of <code>Object3DNode</code>
  17. with larger set of model related metrics. Unlike <code>Object3DNode</code>,
  18. <code>ModelNode</code> extracts the reference to the 3D object from the
  19. current node frame state.</p></div>
  20. </header>
  21. <article>
  22. <div class="container-overview">
  23. <h2>Constructor</h2>
  24. <h3 class="name name-method" id="ModelNode" translate="no">new <a href="#ModelNode">ModelNode</a><span class="signature">( scope : <span class="param-type">'position' | 'viewPosition' | 'direction' | 'scale' | 'worldMatrix'</span> )</span> </h3>
  25. <div class="method">
  26. <div class="description">
  27. <p>Constructs a new object model node.</p>
  28. </div>
  29. <table class="params">
  30. <tbody>
  31. <tr>
  32. <td class="name"><code>scope</code></td>
  33. <td class="description last"><p>The node represents a different type of transformation depending on the scope.</p></td>
  34. </tr>
  35. </tbody>
  36. </table>
  37. </div>
  38. </div>
  39. <h2 class="subsection-title">Methods</h2>
  40. <h3 class="name name-method" id="update" translate="no">.<a href="#update">update</a><span class="signature">( frame : <span class="param-type">NodeFrame</span> )</span> </h3>
  41. <div class="method">
  42. <div class="description">
  43. <p>Extracts the model reference from the frame state and then
  44. updates the uniform value depending on the scope.</p>
  45. </div>
  46. <table class="params">
  47. <tbody>
  48. <tr>
  49. <td class="name"><code>frame</code></td>
  50. <td class="description last"><p>The current node frame.</p></td>
  51. </tr>
  52. </tbody>
  53. </table>
  54. <dl class="details">
  55. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Object3DNode.html#update">Object3DNode#update</a></dt>
  56. </dl>
  57. </div>
  58. <h2 class="subsection-title">Source</h2>
  59. <p>
  60. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/accessors/ModelNode.js" target="_blank" rel="noopener" translate="no">src/nodes/accessors/ModelNode.js</a>
  61. </p>
  62. </article>
  63. </section>
  64. <script src="../scripts/linenumber.js"></script>
  65. <script src="../scripts/page.js"></script>
  66. </body>
  67. </html>
粤ICP备19079148号