rectangle

    Particles will be emitted in the area of a rectangle.

    CPUParticles2D.swift:116
    case rectangle

    Other cases

    • case point

      All particles will be emitted from a single point.

    • case sphere

      Particles will be emitted in the volume of a sphere flattened to two dimensions.

    • case sphereSurface

      Particles will be emitted on the surface of a sphere flattened to two dimensions.

    • case points

      Particles will be emitted at a position chosen randomly among emissionPoints. Particle color will be modulated by emissionColors.

    • case directedPoints

      Particles will be emitted at a position chosen randomly among emissionPoints. Particle velocity and rotation will be set based on emissionNormals. Particle color will be modulated by emissionColors.

    • case max

      Represents the size of the EmissionShape enum.