Taos API Reference
    Preparing search index...

    Type Alias SpawnShape

    SpawnShape:
        | { kind: "sphere"; radius: number; solidAngle: number }
        | { kind: "cone"; radius: number; angle: number }
        | { kind: "box"; halfExtents: [number, number, number] }
        | { kind: "sdf_surface"; thickness?: number }

    Geometric region used by an emitter to choose initial particle position and velocity direction.

    Type Declaration

    • { kind: "sphere"; radius: number; solidAngle: number }
    • { kind: "cone"; radius: number; angle: number }
    • { kind: "box"; halfExtents: [number, number, number] }
    • { kind: "sdf_surface"; thickness?: number }

      Spawns particles on the surface of the bound ParticleGraphConfig.sdf. Picks a random point inside the SDF's AABB and projects it to the nearest surface along the gradient; initial velocity is the outward normal scaled by initialSpeed. thickness ≥ 0 jitters the projected position along the normal so the spawn band has finite width (default 0).