Donut Shape

DonutShape

2024.3.26

yisky

Hierarchy (view full)

Constructors

Properties

arcMode: ParticleSystemShapeMultiModeValue = ParticleSystemShapeMultiModeValue.Random

The mode used for generating particles around the arc.

DonutShape

arcSpeed: MinMaxCurve = ...

When using one of the animated modes, how quickly to move the emission position around the arc.

DonutShape

Accessors

  • get arc(): number
  • Get donut arc angle, in degrees.

    Returns number

    DonutShape

  • set arc(value): void
  • Set donut arc angle, in degrees.

    Parameters

    • value: number

    Returns void

    DonutShape

  • get arcSpread(): number
  • Get the control the gap between emission points around the arc.

    Returns number

    DonutShape

  • set arcSpread(value): void
  • Set the control the gap between emission points around the arc, from 0 to 1.

    Parameters

    • value: number

    Returns void

    DonutShape

  • get donutRadius(): number
  • Get radius of the donut.

    Returns number

    DonutShape

  • set donutRadius(value): void
  • Set radius of the donut.s

    Parameters

    • value: number

    Returns void

    DonutShape

  • get radius(): number
  • Get radius of the shape.

    Returns number

    DonutShape

  • set radius(value): void
  • Set radius of the shape.

    Parameters

    • value: number

    Returns void

    DonutShape

  • get radiusThickness(): number
  • Get the radius thickness of the shape.

    Returns number

    DonutShape

  • set radiusThickness(value): void
  • Set the radius thickness of the shape, from 0 to 1.

    • 0 Emit from surface;
    • 0 to 1 Emit within surface and volume center.

    Parameters

    • value: number

    Returns void

    DonutShape

Methods

  • Randomly generate position and direction.

    Parameters

    • particle: Particle

    Returns void

    DonutShape

  • Deserialize

    Parameters

    • json: {
          [key: string]: any;
      }
      • [key: string]: any

    Returns void

    DonutShape

  • Serialize

    Returns {
        [key: string]: any;
    }

    • [key: string]: any

    DonutShape