Bone.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Bone - 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">Bone</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A bone which is part of a <a href="Skeleton.html">Skeleton</a>. The skeleton in turn is used by
  17. the <a href="SkinnedMesh.html">SkinnedMesh</a>.</p></div>
  18. <h2>Code Example</h2>
  19. <div translate="no"><pre><code class="language-js">const root = new THREE.Bone();
  20. const child = new THREE.Bone();
  21. root.add( child );
  22. child.position.y = 5;
  23. </code></pre></div>
  24. </header>
  25. <article>
  26. <div class="container-overview">
  27. <h2>Constructor</h2>
  28. <h3 class="name name-method" id="Bone" translate="no">new <a href="#Bone">Bone</a><span class="signature">()</span> </h3>
  29. <div class="method">
  30. <div class="description">
  31. <p>Constructs a new bone.</p>
  32. </div>
  33. </div>
  34. </div>
  35. <h2 class="subsection-title">Properties</h2>
  36. <div class="member">
  37. <h3 class="name" id="isBone" translate="no">.<a href="#isBone">isBone</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  38. <div class="description">
  39. <p>This flag can be used for type testing.<br/>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/Bone.js" target="_blank" rel="noopener" translate="no">src/objects/Bone.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号