AnimationObjectGroup.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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">A group of objects that receives a shared animation state.<br /><br />
  12. For an overview of the different elements of the three.js animation system see the
  13. "Animation System" article in the "Next Steps" section of the manual.
  14. </p>
  15. <h2>Usage:</h2>
  16. <p class="desc">
  17. Add objects you would otherwise pass as 'root' to the constructor or the [page:AnimationMixer.clipAction clipAction]
  18. method of [page:AnimationMixer AnimationMixer] and instead pass this object as 'root'.<br /><br />
  19. Note that objects of this class appear as one object to the mixer,
  20. so cache control of the individual objects must be done on the group.
  21. </p>
  22. <h2>Limitations</h2>
  23. <p class="desc">
  24. The animated properties must be compatible among all objects in the group.<br /><br />
  25. A single property can either be controlled through a target group or directly, but not both.
  26. </p>
  27. <h2>Constructor</h2>
  28. <h3>[name]( [param:Object obj1], [param:Object obj2], [param:Object obj3], ... )</h3>
  29. <p>
  30. [page:Object obj] - an arbitrary number of meshes that share the same animation state.
  31. </p>
  32. <h2>Properties</h2>
  33. <h3>[property:Boolean isAnimationObjectGroup]</h3>
  34. <p>
  35. Read-only flag to check if a given object is of type [name].
  36. </p>
  37. <h3>[property:Object stats]</h3>
  38. <p>
  39. An object that contains some informations of this `AnimationObjectGroup` (total number, number
  40. in use, number of bindings per object)
  41. </p>
  42. <h3>[property:String uuid]</h3>
  43. <p>
  44. The [link:http://en.wikipedia.org/wiki/Universally_unique_identifier UUID] of this
  45. `AnimationObjectGroup`. It gets automatically assigned and shouldn't be edited.
  46. </p>
  47. <h2>Methods</h2>
  48. <h3>[method:undefined add]( [param:Object obj1], [param:Object obj2], [param:Object obj3], ... )</h3>
  49. <p>
  50. Adds an arbitrary number of objects to this `AnimationObjectGroup`.
  51. </p>
  52. <h3>[method:undefined remove]( [param:Object obj1], [param:Object obj2], [param:Object obj3], ... )</h3>
  53. <p>
  54. Removes an arbitrary number of objects from this `AnimationObjectGroup`.
  55. </p>
  56. <h3>[method:undefined uncache]( [param:Object obj1], [param:Object obj2], [param:Object obj3], ... )</h3>
  57. <p>
  58. Deallocates all memory resources for the passed objects of this `AnimationObjectGroup`.
  59. </p>
  60. <h2>Source</h2>
  61. <p>
  62. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  63. </p>
  64. </body>
  65. </html>