three-nebula API
    Preparing search index...

    Class Body

    Sets the body property on initialized particles.

    Hierarchy

    • default
      • Body
    Index
    • Constructs a Body initalizer instance.

      Parameters

      • body: unknown

        The content for the particle body, can be a color or an object (mesh)

      • Optionalw: number

        The width of the particle body

      • Optionalh: number

        The height of the particle body

      • isEnabled: boolean = true

      Returns Body

    body: ArraySpan<unknown> | null
    h?: number
    isEnabled: boolean
    type: string
    w?: number
    • Sets the particle's initial body.

      Parameters

      • particle: Particle

        the particle to initialize the property on

      Returns void

    • Creates a Body initializer from JSON.

      Parameters

      • json: BodyJSON

        The JSON to construct the instance from.

      Returns Body

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

      Returns boolean