LightningStorm.d.ts 800 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import {
  2. Material,
  3. Vector3
  4. } from '../../../src/Three';
  5. import { LightningStrike, RayParameters } from '../geometries/LightningStrike';
  6. export interface StormParams {
  7. size?: number;
  8. minHeight?: number;
  9. maxHeight?: number;
  10. maxSlope?: number;
  11. maxLightnings?: number;
  12. lightningMinPeriod?: number;
  13. lightningMaxPeriod?: number;
  14. lightningMinDuration?: number;
  15. lightningMaxDuration?: number;
  16. lightningParameters?: RayParameters;
  17. lightningMaterial?: Material;
  18. isEternal?: boolean;
  19. onRayPosition?: ( source: Vector3, dest: Vector3 ) => void;
  20. onLightningDown?: ( lightning: LightningStrike ) => void;
  21. }
  22. export class LightningStorm {
  23. constructor( stormParams?: StormParams );
  24. update( time: number ): void;
  25. copy( source: LightningStorm ): LightningStorm;
  26. clone(): LightningStorm;
  27. }