CCDIKHelper.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>CCDIKHelper - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Object3D.html">Object3D</a> → </p>
  13. <h1 translate="no">CCDIKHelper</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Helper for visualizing IK bones.</p></div>
  17. </header>
  18. <article>
  19. <h2 class="subsection-title">Import</h2>
  20. <p><span translate="no">CCDIKHelper</span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank">Installation#Addons</a>.</p>
  21. <pre><code class="language-js">import { CCDIKHelper } from 'three/addons/animation/CCDIKSolver.js';</code></pre>
  22. <div class="container-overview">
  23. <h2>Constructor</h2>
  24. <h3 class="name name-method" id="CCDIKHelper" translate="no">new <a href="#CCDIKHelper">CCDIKHelper</a><span class="signature">( mesh : <span class="param-type">SkinnedMesh</span>, iks : <span class="param-type">Array.&lt;CCDIKSolver~IK></span>, sphereSize : <span class="param-type">number</span> )</span> </h3>
  25. <div class="method">
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name"><code>mesh</code></td>
  30. <td class="description last"><p>The skinned mesh.</p></td>
  31. </tr>
  32. <tr>
  33. <td class="name"><code>iks</code></td>
  34. <td class="description last"><p>The IK objects.<br/>Default is <code>[]</code>.</p></td>
  35. </tr>
  36. <tr>
  37. <td class="name"><code>sphereSize</code></td>
  38. <td class="description last"><p>The sphere size.<br/>Default is <code>0.25</code>.</p></td>
  39. </tr>
  40. </tbody>
  41. </table>
  42. </div>
  43. </div>
  44. <h2 class="subsection-title">Properties</h2>
  45. <div class="member">
  46. <h3 class="name" id="effectorSphereMaterial" translate="no">.<a href="#effectorSphereMaterial">effectorSphereMaterial</a><span class="type-signature"> : <a href="MeshBasicMaterial.html">MeshBasicMaterial</a></span> </h3>
  47. <div class="description">
  48. <p>The material for the effector spheres.</p>
  49. </div>
  50. </div>
  51. <div class="member">
  52. <h3 class="name" id="iks" translate="no">.<a href="#iks">iks</a><span class="type-signature"> : Array.&lt;<a href="CCDIKSolver.html#~IK">CCDIKSolver~IK</a>></span> </h3>
  53. <div class="description">
  54. <p>The IK objects.</p>
  55. </div>
  56. </div>
  57. <div class="member">
  58. <h3 class="name" id="lineMaterial" translate="no">.<a href="#lineMaterial">lineMaterial</a><span class="type-signature"> : <a href="LineBasicMaterial.html">LineBasicMaterial</a></span> </h3>
  59. <div class="description">
  60. <p>A global line material.</p>
  61. </div>
  62. </div>
  63. <div class="member">
  64. <h3 class="name" id="linkSphereMaterial" translate="no">.<a href="#linkSphereMaterial">linkSphereMaterial</a><span class="type-signature"> : <a href="MeshBasicMaterial.html">MeshBasicMaterial</a></span> </h3>
  65. <div class="description">
  66. <p>The material for the link spheres.</p>
  67. </div>
  68. </div>
  69. <div class="member">
  70. <h3 class="name" id="root" translate="no">.<a href="#root">root</a><span class="type-signature"> : <a href="SkinnedMesh.html">SkinnedMesh</a></span> </h3>
  71. <div class="description">
  72. <p>The skinned mesh this helper refers to.</p>
  73. </div>
  74. </div>
  75. <div class="member">
  76. <h3 class="name" id="sphereGeometry" translate="no">.<a href="#sphereGeometry">sphereGeometry</a><span class="type-signature"> : <a href="SkinnedMesh.html">SkinnedMesh</a></span> </h3>
  77. <div class="description">
  78. <p>The helpers sphere geometry.</p>
  79. </div>
  80. </div>
  81. <div class="member">
  82. <h3 class="name" id="targetSphereMaterial" translate="no">.<a href="#targetSphereMaterial">targetSphereMaterial</a><span class="type-signature"> : <a href="MeshBasicMaterial.html">MeshBasicMaterial</a></span> </h3>
  83. <div class="description">
  84. <p>The material for the target spheres.</p>
  85. </div>
  86. </div>
  87. <h2 class="subsection-title">Methods</h2>
  88. <h3 class="name name-method" id="dispose" translate="no">.<a href="#dispose">dispose</a><span class="signature">()</span> </h3>
  89. <div class="method">
  90. <div class="description">
  91. <p>Frees the GPU-related resources allocated by this instance.
  92. Call this method whenever this instance is no longer used in your app.</p>
  93. </div>
  94. </div>
  95. <h2 class="subsection-title">Source</h2>
  96. <p>
  97. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/animation/CCDIKSolver.js" target="_blank" rel="noopener" translate="no">examples/jsm/animation/CCDIKSolver.js</a>
  98. </p>
  99. </article>
  100. </section>
  101. <script src="../scripts/linenumber.js"></script>
  102. <script src="../scripts/page.js"></script>
  103. </body>
  104. </html>
粤ICP备19079148号