three-nebula API
    Preparing search index...

    Class Position

    Sets the starting position property for initialized particles. This is derived from a zone randomly chosen from those supplied to the constructor.

    Hierarchy

    • default
      • Position
    Index
    • Constructs a Position initializer instance.

      Parameters

      • ...zones: Zone[]

        The zones to use as bounds for the particle's starting position

      Returns Position

    isEnabled: boolean
    type: string
    zones: Zone[]
    • Adds a zone or zones to this.zones.

      Parameters

      • ...zones: Zone[]

        The zones to add

      Returns void

    • Resets the initializer properties. Clears all previously set zones and resets the zones according to args passed.

      Parameters

      • ...zones: Zone[]

        The zones to use as bounds for the particle's starting position

      Returns void

    • Creates a Position initializer from JSON.

      Parameters

      • json: PositionJSON

        The JSON to construct the instance from.

      Returns Position

    • Determines if the initializer requires a WebGL API to be provided to its constructor.

      Returns boolean