three-nebula API
    Preparing search index...

    Class Mass

    Sets the mass property on initialized particles.

    Hierarchy

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

      Parameters

      • Optionalmin: number

        The minumum mass for the particle

      • Optionalmax: number

        The maximum mass for the particle

      • center: boolean = false

        Determines whether to average the mass value

      • isEnabled: boolean = true

      Returns Mass

    isEnabled: boolean
    massPan: Span<number>
    type: string
    • Sets the particle's initial mass.

      Parameters

      • particle: Particle

        the particle to initialize the property on

      Returns void

    • Creates a Mass initializer from JSON.

      Parameters

      • json: MassJSON

        The JSON to construct the instance from.

      Returns Mass

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

      Returns boolean