MD2CharacterComplex.d.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import {
  2. Object3D,
  3. Mesh,
  4. Texture
  5. } from '../../../src/Three';
  6. export class MD2CharacterComplex {
  7. constructor();
  8. scale: number;
  9. animationFPS: number;
  10. transitionFrames: number;
  11. maxSpeed: number;
  12. maxReverseSpeed: number;
  13. frontAcceleration: number;
  14. backAcceleration: number;
  15. frontDecceleration: number;
  16. angularSpeed: number;
  17. root: Object3D;
  18. meshBody: Mesh | null;
  19. meshWeapon: Mesh | null;
  20. controls: null;
  21. skinsBody: Texture[];
  22. skinsWeapon: Texture[];
  23. weapons: Mesh[];
  24. currentSkin: number;
  25. onLoadComplete: () => void;
  26. meshes: Mesh[];
  27. animations: object[];
  28. loadCounter: number;
  29. speed: number;
  30. bodyOrientation: number;
  31. walkSpeed: number;
  32. crouchSpeed: number;
  33. activeAnimation: string;
  34. oldAnimation: string;
  35. enableShadows( enable: boolean ): void;
  36. setVisible( enable: boolean ): void;
  37. shareParts( original: MD2CharacterComplex ): void;
  38. loadParts( config: object ): void;
  39. setPlaybackRate( rate: number ): void;
  40. setWireframe( wireframeEnabled: boolean ): void;
  41. setSkin( index: number ): void;
  42. setWeapon( index: number ): void;
  43. setAnimation( animationName: string ): void;
  44. update( delta: number ): void;
  45. updateAnimations( delta: number ): void;
  46. updateBehaviors(): void;
  47. updateMovementModel( delta: number ): void;
  48. }