AnimationClip.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>[name]</h1>
  12. <div class="desc">
  13. An AnimationClip is a reusable set of Tracks that represent an animation.
  14. </div>
  15. <h2>Constructor</h2>
  16. <h3>[name]( [page:String name], [page:Number duration], tracks )</h3>
  17. <h2>Properties</h2>
  18. <h3>[property:String uuid]</h3>
  19. <h3>[property:String name]</h3>
  20. <h3>[property:Number duration]</h3>
  21. <h3>.tracks</h3>
  22. <h2>Methods</h2>
  23. <h3>[method:null resetDuration]()</h3>
  24. <div>
  25. Resets duration by scanning all tracks in the clip.
  26. </div>
  27. <h3>[method:AnimationClip trim]()</h3>
  28. <div>
  29. Trims all tracks to the clip's duration.
  30. </div>
  31. <h3>[method:AnimationClip optimize]()</h3>
  32. <div>
  33. Optimizes each track.
  34. </div>
  35. <h2>Static Methods</h2>
  36. <h3>[method:AnimationClip parse]( [page:Object json] )</h3>
  37. <div>
  38. json -- JSON object
  39. </div>
  40. <h3>[method:Object toJSON]( [page:AnimationClip clip] )</h3>
  41. <div>
  42. clip -- AnimationClip
  43. </div>
  44. <h3>[method:AnimationClip CreateFromMorphTargetSequence]( [page:String name], [page:Array morphTargetSequence], [page:Number fps], [page:Boolean noLoop] )</h3>
  45. <div>
  46. name -- Name for the new clip <br />
  47. morphTargetSequence -- Array of morph targets <br />
  48. fps -- Number of frames per second <br />
  49. noLoop -- Whether looping occurs automatically.
  50. </div>
  51. <h3>[method:AnimationClip parseAnimation]( [page:Object animation], [page:Array bones] )</h3>
  52. <div>
  53. Parses the animation.hierarchy format and returns an AnimationClip.
  54. </div>
  55. <h2>Source</h2>
  56. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  57. </body>
  58. </html>