1
0

Bone.html 1.2 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
  14. the [page:SkinnedMesh]. Bones are almost identical to a blank
  15. [page:Object3D].
  16. </p>
  17. <h2>Code Example</h2>
  18. <code>
  19. const root = new THREE.Bone();
  20. const child = new THREE.Bone();
  21. root.add( child );
  22. child.position.y = 5;
  23. </code>
  24. <h2>Constructor</h2>
  25. <h3>[name]( )</h3>
  26. <p>Creates a new [name].</p>
  27. <h2>Properties</h2>
  28. <p>See the base [page:Object3D] class for common properties.</p>
  29. <h3>[property:Boolean isBone]</h3>
  30. <p>Read-only flag to check if a given object is of type [name].</p>
  31. <h3>[property:String type]</h3>
  32. <p>Set to 'Bone', this can be used to find all Bones in a scene.</p>
  33. <h2>Methods</h2>
  34. <p>See the base [page:Object3D] class for common methods.</p>
  35. <h2>Source</h2>
  36. <p>
  37. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  38. </p>
  39. </body>
  40. </html>