@needle-tools/engine
Version:
Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.
26 lines (25 loc) • 969 B
TypeScript
import { type Behavior, type Particle, type ParticleSystem } from "three.quarks";
import { SubEmitterType } from "./ParticleSystem.js";
import type { IParticleSystem } from "./ParticleSystemModules.js";
export declare class ParticleSubEmitter implements Behavior {
private system;
private particleSystem;
private subSystem;
subParticleSystem?: ParticleSystem | undefined;
type: string;
emitterType?: SubEmitterType;
emitterProbability?: number;
private q_;
private v_;
private v2_;
private _emitterMatrix;
private _circularBuffer;
constructor(system: IParticleSystem, particleSystem: ParticleSystem, subSystem: IParticleSystem, subParticleSystem?: ParticleSystem | undefined);
clone(): Behavior;
initialize(particle: Particle): void;
update(particle: Particle, _delta: number): void;
frameUpdate(_delta: number): void;
toJSON(): any;
reset(): void;
private run;
}