SkinnedMesh.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <script src="../../list.js"></script>
  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. <div class="desc">An 3d object that has bones data. These Bones can then be used to animate the vertices of the object.</div>
  13. <h2>Constructor</h2>
  14. <h3>[name]([page:Geometry geometry], [page:Material material], [page:boolean useVertexTexture])</h3>
  15. <div>
  16. geometry — An instance of [page:Geometry].<br />
  17. material — An instance of [page:Material] (optional).<br />
  18. useVertexTexture -- Defines wether a vertex texture can be used (optional).
  19. </div>
  20. <div>
  21. This Creates a new instance of skinnedMesh.
  22. </div>
  23. <h2>Properties</h2>
  24. <h3>.[page:array bones]</h3>
  25. <div>
  26. This contains the array of bones for this mesh. These should be set in the constructor.
  27. </div>
  28. <h3>.[page:Matrix4 identityMatrix]</h3>
  29. <div>
  30. This is an identityMatrix to calculate the bones matrices from.
  31. </div>
  32. <h3>.[page:boolean useVertexTexture]</h3>
  33. <div>
  34. The boolean defines whether a vertex texture is used to calculate the bones. This boolean shouldn't be changed after constructor.
  35. </div>
  36. <h3>.[page:array boneMatrices]</h3>
  37. <div>
  38. This array of matrices contains the matrices of the bones. These get calculated in the constructor.
  39. </div>
  40. <h2>Methods</h2>
  41. <h3>.pose()</h3>
  42. <div>
  43. This method sets the skinnedmesh in the rest pose.
  44. </div>
  45. <h3>.addBone([page:Bone bone]) [page:Bone]</h3>
  46. <div>
  47. bone -- This is the bone that needs to be added. (optional)
  48. </div>
  49. <div>
  50. This method adds the bone to the skinnedmesh when it is provided. It creates a new bone and adds that when no bone is given.
  51. </div>
  52. <h2>Source</h2>
  53. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  54. </body>
  55. </html>