Bone.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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:String type]</h3>
  31. <p>Set to 'Bone', this can be used to find all Bones in a scene.</p>
  32. <h2>Methods</h2>
  33. <p>See the base [page:Object3D] class for common methods.</p>
  34. <h2>Source</h2>
  35. <p>
  36. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  37. </p>
  38. </body>
  39. </html>