babylon.quarks - v1.0.0
    Preparing search index...

    Interface EmitterShape

    Where a system's particles start and which way they head: a sphere, cone, box, mesh surface and so on. Register more with an EmitterShapePlugin.

    interface EmitterShape {
        transform?: ShapeTransform;
        type: string;
        clone(): EmitterShape;
        initialize(particle: Particle, emissionState: EmissionState): void;
        reset?(): void;
        toJSON(): ShapeJSON;
        update(system: IParticleSystem, delta: number): void;
    }

    Implemented by

    Index
    transform?: ShapeTransform

    Optional local transform of the shape inside its particle system, applied by the shape itself at the end of initialize.

    type: string

    The shape's type, as its JSON writes it.

    • A copy of the shape with the same settings.

      Returns EmitterShape

    • Places a new particle: sets its position and direction and its velocity, the direction at the particle's start speed, in the system's space.

      Parameters

      Returns void

    • Forgets the state the shape built up while emitting (the arc sweep position of Loop/PingPong shapes, generator memory), so a restarted system emits from the start of the arc again. Called by the particle system's restart().

      Returns void

    • The shape's JSON.

      Returns ShapeJSON

    • Advances the shape's own state (its arc sweep) by delta seconds; called once per step before emission.

      Parameters

      Returns void