AnimationObjectGroup.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>AnimationObjectGroup - 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. <h1 translate="no">AnimationObjectGroup</h1>
  13. <section>
  14. <header>
  15. <div class="class-description"><p>A group of objects that receives a shared animation state.</p>
  16. <p>Usage:</p>
  17. <ul>
  18. <li>Add objects you would otherwise pass as 'root' to the
  19. constructor or the .clipAction method of AnimationMixer.</li>
  20. <li>Instead pass this object as 'root'.</li>
  21. <li>You can also add and remove objects later when the mixer is running.</li>
  22. </ul>
  23. <p>Note:</p>
  24. <ul>
  25. <li>Objects of this class appear as one object to the mixer,
  26. so cache control of the individual objects must be done on the group.</li>
  27. </ul>
  28. <p>Limitation:</p>
  29. <ul>
  30. <li>The animated properties must be compatible among the all objects in the group.</li>
  31. <li>A single property can either be controlled through a target group or directly, but not both.</li>
  32. </ul></div>
  33. </header>
  34. <article>
  35. <div class="container-overview">
  36. <h2>Constructor</h2>
  37. <h3 class="name name-method" id="AnimationObjectGroup" translate="no">new <a href="#AnimationObjectGroup">AnimationObjectGroup</a><span class="signature">( &hellip;arguments : <span class="param-type">Object3D</span> )</span> </h3>
  38. <div class="method">
  39. <div class="description">
  40. <p>Constructs a new animation group.</p>
  41. </div>
  42. <table class="params">
  43. <tbody>
  44. <tr>
  45. <td class="name"><code>arguments</code></td>
  46. <td class="description last"><p>An arbitrary number of 3D objects that share the same animation state.</p></td>
  47. </tr>
  48. </tbody>
  49. </table>
  50. </div>
  51. </div>
  52. <h2 class="subsection-title">Properties</h2>
  53. <div class="member">
  54. <h3 class="name" id="isAnimationObjectGroup" translate="no">.<a href="#isAnimationObjectGroup">isAnimationObjectGroup</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  55. <div class="description">
  56. <p>This flag can be used for type testing.<br/>Default is <code>true</code>.</p>
  57. </div>
  58. </div>
  59. <div class="member">
  60. <h3 class="name" id="uuid" translate="no">.<a href="#uuid">uuid</a><span class="type-signature"> : string</span> <span class="type-signature">(readonly) </span></h3>
  61. <div class="description">
  62. <p>The UUID of the 3D object.</p>
  63. </div>
  64. </div>
  65. <h2 class="subsection-title">Methods</h2>
  66. <h3 class="name name-method" id="add" translate="no">.<a href="#add">add</a><span class="signature">( &hellip;arguments : <span class="param-type">Object3D</span> )</span> </h3>
  67. <div class="method">
  68. <div class="description">
  69. <p>Adds an arbitrary number of objects to this animation group.</p>
  70. </div>
  71. <table class="params">
  72. <tbody>
  73. <tr>
  74. <td class="name"><code>arguments</code></td>
  75. <td class="description last"><p>The 3D objects to add.</p></td>
  76. </tr>
  77. </tbody>
  78. </table>
  79. </div>
  80. <h3 class="name name-method" id="remove" translate="no">.<a href="#remove">remove</a><span class="signature">( &hellip;arguments : <span class="param-type">Object3D</span> )</span> </h3>
  81. <div class="method">
  82. <div class="description">
  83. <p>Removes an arbitrary number of objects to this animation group</p>
  84. </div>
  85. <table class="params">
  86. <tbody>
  87. <tr>
  88. <td class="name"><code>arguments</code></td>
  89. <td class="description last"><p>The 3D objects to remove.</p></td>
  90. </tr>
  91. </tbody>
  92. </table>
  93. </div>
  94. <h3 class="name name-method" id="uncache" translate="no">.<a href="#uncache">uncache</a><span class="signature">( &hellip;arguments : <span class="param-type">Object3D</span> )</span> </h3>
  95. <div class="method">
  96. <div class="description">
  97. <p>Deallocates all memory resources for the passed 3D objects of this animation group.</p>
  98. </div>
  99. <table class="params">
  100. <tbody>
  101. <tr>
  102. <td class="name"><code>arguments</code></td>
  103. <td class="description last"><p>The 3D objects to uncache.</p></td>
  104. </tr>
  105. </tbody>
  106. </table>
  107. </div>
  108. <h2 class="subsection-title">Source</h2>
  109. <p>
  110. <a href="https://github.com/mrdoob/three.js/blob/master/src/animation/AnimationObjectGroup.js" target="_blank" rel="noopener" translate="no">src/animation/AnimationObjectGroup.js</a>
  111. </p>
  112. </article>
  113. </section>
  114. <script src="../scripts/linenumber.js"></script>
  115. <script src="../scripts/page.js"></script>
  116. </body>
  117. </html>
粤ICP备19079148号