AnimationAction.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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 AnimationAction schedules clip playback on specific objects.
  14. </div>
  15. <h2>Constructor</h2>
  16. <h3>[name]( [page:AnimationMixer mixer], [page:AnimationClip clip], [page:Object3D localRoot] )</h3>
  17. <h2>Properties</h2>
  18. <h3>[property:Number time]</h3>
  19. <h3>[property:Number timeScale]</h3>
  20. <h3>[property:Number weight]</h3>
  21. <h3>[property:Number loop]</h3>
  22. <h3>[property:Number repetitions]</h3>
  23. <h3>[property:Boolean paused]</h3>
  24. <h3>[property:Boolean enabled]</h3>
  25. <h3>[property:Boolean clampWhenFinished]</h3>
  26. <h3>[property:Boolean zeroSlopeAtStart]</h3>
  27. <h3>[property:Boolean zeroSlopeAtEnd]</h3>
  28. <h2>Methods</h2>
  29. <h3>[method:AnimationAction play]()</h3>
  30. <h3>[method:AnimationAction stop]()</h3>
  31. <h3>[method:AnimationAction reset]()</h3>
  32. <h3>[method:Boolean isRunning]()</h3>
  33. <h3>[method:Boolean isScheduled]()</h3>
  34. <h3>[method:AnimationAction startAt]()</h3>
  35. <h3>[method:AnimationAction setLoop]( [page:Number mode], [page:Number repetitions] )</h3>
  36. <h3>[method:AnimationAction setEffectiveWeight]( [page:Number weight] )</h3>
  37. <h3>[method:number getEffectiveWeight]()</h3>
  38. <h3>[method:AnimationAction fadeIn]( [page:Number duration] )</h3>
  39. <h3>[method:AnimationAction fadeOut]( [page:Number duration] )</h3>
  40. <h3>[method:AnimationAction crossFadeFrom]( [page:AnimationAction fadeOutAction], [page:Number duration], [page:Boolean warp] )</h3>
  41. <h3>[method:AnimationAction crossFadeTo]( [page:AnimationAction fadeInAction], [page:Number duration], [page:Boolean warp] )</h3>
  42. <h3>[method:AnimationAction stopFading]()</h3>
  43. <h3>[method:AnimationAction setEffectiveTimeScale]( [page:Number timeScale] )</h3>
  44. <h3>[method:Number getEffectiveTimeScale]()</h3>
  45. <h3>[method:AnimationAction setDuration]( [page:Number duration] )</h3>
  46. <h3>[method:AnimationAction syncWith]( [page:AnimationAction action] )</h3>
  47. <h3>[method:AnimationAction halt]( [page:Number duration] )</h3>
  48. <h3>[method:AnimationAction warp]( [page:Number startTimeScale], [page:Number endTimeScale], [page:Number duration] )</h3>
  49. <h3>[method:AnimationAction stopWarping]()</h3>
  50. <h3>[method:AnimationMixer getMixer]()</h3>
  51. <h3>[method:AnimationClip getClip]()</h3>
  52. <h3>[method:Object3D getRoot]()</h3>
  53. <h2>Static Methods</h2>
  54. <h3>[method:AnimationClip parse]( [page:Object json] )</h3>
  55. <div>
  56. json -- JSON object
  57. </div>
  58. <h3>[method:Object toJSON]( [page:AnimationClip clip] )</h3>
  59. <div>
  60. clip -- AnimationClip
  61. </div>
  62. <h3>[method:AnimationClip CreateFromMorphTargetSequence]( [page:String name], [page:Array morphTargetSequence], [page:Number fps], [page:Boolean noLoop] )</h3>
  63. <div>
  64. name -- Name for the new clip <br />
  65. morphTargetSequence -- Array of morph targets <br />
  66. fps -- Number of frames per second <br />
  67. noLoop -- Whether looping occurs automatically.
  68. </div>
  69. <h3>[method:AnimationClip parseAnimation]( [page:Object animation], [page:Array bones] )</h3>
  70. <div>
  71. Parses the animation.hierarchy format and returns an AnimationClip.
  72. </div>
  73. <h2>Source</h2>
  74. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  75. </body>
  76. </html>