ModelAnimationLoop.js 854 B

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