Group.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Group - 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">Group</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This is almost identical to an <a href="Object3D.html">Object3D</a>. Its purpose is to
  17. make working with groups of objects syntactically clearer.</p></div>
  18. <h2>Code Example</h2>
  19. <div translate="no"><pre><code class="language-js">// Create a group and add the two cubes.
  20. // These cubes can now be rotated / scaled etc as a group.
  21. const group = new THREE.Group();
  22. group.add( meshA );
  23. group.add( meshB );
  24. scene.add( group );
  25. </code></pre></div>
  26. </header>
  27. <article>
  28. <div class="container-overview">
  29. <h2>Constructor</h2>
  30. <h3 class="name name-method" id="Group" translate="no">new <a href="#Group">Group</a><span class="signature">()</span> </h3>
  31. <div class="method">
  32. </div>
  33. </div>
  34. <h2 class="subsection-title">Properties</h2>
  35. <div class="member">
  36. <h3 class="name" id="isGroup" translate="no">.<a href="#isGroup">isGroup</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  37. <div class="description">
  38. <p>This flag can be used for type testing.</p>
  39. <p>Default is <code>true</code>.</p>
  40. </div>
  41. </div>
  42. <h2 class="subsection-title">Source</h2>
  43. <p>
  44. <a href="https://github.com/mrdoob/three.js/blob/master/src/objects/Group.js" translate="no" target="_blank" rel="noopener">src/objects/Group.js</a>
  45. </p>
  46. </article>
  47. </section>
  48. <script src="../scripts/linenumber.js"></script>
  49. <script src="../scripts/page.js"></script>
  50. </body>
  51. </html>
粤ICP备19079148号