Bone.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. [page:Object3D] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc">
  13. A bone which is part of a [page:Skeleton]. The skeleton in turn is used by the [page:SkinnedMesh].
  14. Bones are almost identical to a blank [page:Object3D].
  15. </p>
  16. <h2>Code Example</h2>
  17. <code>
  18. const root = new THREE.Bone();
  19. const child = new THREE.Bone();
  20. root.add( child );
  21. child.position.y = 5;
  22. </code>
  23. <h2>Constructor</h2>
  24. <h3>[name]( )</h3>
  25. <p>
  26. Creates a new [name].
  27. </p>
  28. <h2>Properties</h2>
  29. <p>See the base [page:Object3D] class for common properties.</p>
  30. <h3>[property:Boolean isBone]</h3>
  31. <p>
  32. Read-only flag to check if a given object is of type [name].
  33. </p>
  34. <h3>[property:String type]</h3>
  35. <p>Set to 'Bone', this can be used to find all Bones in a scene.</p>
  36. <h2>Methods</h2>
  37. <p>See the base [page:Object3D] class for common methods.</p>
  38. <h2>Source</h2>
  39. <p>
  40. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  41. </p>
  42. </body>
  43. </html>