Sprite.d.ts 517 B

123456789101112131415161718
  1. import { Material } from './../materials/Material';
  2. import { Vector2 } from './../math/Vector2';
  3. import { Raycaster } from './../core/Raycaster';
  4. import { Object3D } from './../core/Object3D';
  5. import { Intersection } from '../core/Raycaster';
  6. export class Sprite extends Object3D {
  7. constructor(material?: Material);
  8. type: 'Sprite';
  9. isSprite: true;
  10. material: Material;
  11. center: Vector2;
  12. raycast(raycaster: Raycaster, intersects: Intersection[]): void;
  13. copy(source: this, recursive?: boolean): this;
  14. }
粤ICP备19079148号