ModelAnimationLoop.js 627 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * Determines if and how a glTF animation is looped.
  3. *
  4. * @enum {number}
  5. *
  6. * @see ModelAnimationCollection#add
  7. */
  8. const ModelAnimationLoop = {
  9. /**
  10. * Play the animation once; do not loop it.
  11. *
  12. * @type {number}
  13. * @constant
  14. */
  15. NONE: 0,
  16. /**
  17. * Loop the animation playing it from the start immediately after it stops.
  18. *
  19. * @type {number}
  20. * @constant
  21. */
  22. REPEAT: 1,
  23. /**
  24. * Loop the animation. First, playing it forward, then in reverse, then forward, and so on.
  25. *
  26. * @type {number}
  27. * @constant
  28. */
  29. MIRRORED_REPEAT: 2,
  30. };
  31. export default Object.freeze(ModelAnimationLoop);