FirstPersonControls.d.ts 660 B

123456789101112131415161718192021222324252627282930313233
  1. import {
  2. Camera,
  3. Vector3
  4. } from '../../../src/Three';
  5. export class FirstPersonControls {
  6. constructor( object: Camera, domElement?: HTMLElement );
  7. object: Camera;
  8. domElement: HTMLElement | HTMLDocument;
  9. enabled: boolean;
  10. movementSpeed: number;
  11. lookSpeed: number;
  12. lookVertical: boolean;
  13. autoForward: boolean;
  14. activeLook: boolean;
  15. heightSpeed: boolean;
  16. heightCoef: number;
  17. heightMin: number;
  18. heightMax: number;
  19. constrainVertical: boolean;
  20. verticalMin: number;
  21. verticalMax: number;
  22. mouseDragOn: boolean;
  23. handleResize(): void;
  24. lookAt( x: number | Vector3, y: number, z: number ): this;
  25. update( delta: number ): this;
  26. dispose(): void;
  27. }