AnimationObjectGroup.html 2.6 KB

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