Hilo3d API - v2.0.0-alpha.4
    Preparing search index...

    Class ParticleEventChannel<Payload>

    Bounded typed event/data channel for sharing impact-style bursts with a resident particle system. Overflow is explicit and draining is batched.

    Type Parameters

    Index
    capacity: number
    name: string
    schema: Readonly<ParticleEventChannelSchema>
    • Drain position/velocity payloads into one resident emitter without creating systems.

      Parameters

      • system: ParticleSystem
      • options: Readonly<
            {
                count?: number;
                emitter?: string;
                positionField?: keyof Payload & string;
                velocityField?: keyof Payload & string;
            },
        > = {}

      Returns number