babylon.animation.d.ts 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. /// <reference path="../babylon.d.ts" />
  2. declare module BABYLON {
  3. class Animation {
  4. name: string;
  5. targetProperty: string;
  6. targetPropertyPath: string[];
  7. framePerSecond: number;
  8. dataType: number;
  9. loopMode: number;
  10. _keys: number[];
  11. _offsetCache: Object;
  12. _highLimitsCache: Object;
  13. constructor(name: string, targetProperty: string, framePerSecond: number, dataType: number, loopMode: number);
  14. clone(): Animation;
  15. setKeys(values: any[]);
  16. _interpolate(currentFrame: number, repeatCount: number, loopMode: number, offsetValue: number, highLimitValue: number);
  17. animate(target: Object, delay: number, from: number, to: number, loop: boolean, speedRatio: number): boolean;
  18. static ANIMATIONTYPE_FLOAT: number;
  19. static ANIMATIONTYPE_VECTOR3: number;
  20. static ANIMATIONTYPE_QUATERNION: number;
  21. static ANIMATIONTYPE_MATRIX: number;
  22. static ANIMATIONLOOPMODE_RELATIVE: number;
  23. static ANIMATIONLOOPMODE_CYCLE: number;
  24. static ANIMATIONLOOPMODE_CONSTANT: number;
  25. }
  26. }