1
0

SkeletonUtils.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. <h1>[name]</h1>
  11. <p class="desc">
  12. Utility functions for [page:Skeleton], [page:SkinnedMesh], and [page:Bone] manipulation.
  13. </p>
  14. <h2>Import</h2>
  15. <p>
  16. [name] is an add-on, and must be imported explicitly.
  17. See [link:#manual/introduction/Installation Installation / Addons].
  18. </p>
  19. <code>
  20. import * as SkeletonUtils from 'three/addons/utils/SkeletonUtils.js';
  21. </code>
  22. <h2>Methods</h2>
  23. <h3>[method:Object3D clone]( [param:Object3D object] )</h3>
  24. <p>
  25. Clones the given object and its descendants, ensuring that any [page:SkinnedMesh] instances
  26. are correctly associated with their bones. Bones are also cloned, and must be descendants of
  27. the object passed to this method. Other data, like geometries and materials, are reused by
  28. reference.
  29. </p>
  30. <h3>[method:undefined retarget]( [param:SkeletonHelper target], [param:SkeletonHelper source], [param:Object options] )</h3>
  31. <p></p>
  32. <h3>[method:AnimationClip retargetClip]( [param:SkeletonHelper target], [param:SkeletonHelper source], [param:AnimationClip clip], [param:Object options] )</h3>
  33. <p></p>
  34. <h2>Source</h2>
  35. <p>
  36. [link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/utils/SkeletonUtils.js examples/jsm/utils/SkeletonUtils.js]
  37. </p>
  38. </body>
  39. </html>