Class ParticleGravityOptions

Structure used for initializing a ParticleGravity object.

Hierarchy

  • FrameworkObject
    • ParticleGravityOptions

Constructors

Properties

Accessors

Methods

Events

Constructors

Accessors

  • get scale(): number
  • Scale which to apply to the gravity value retrieved from the physics sub-system.

    Returns number

  • set scale(value): void
  • Parameters

    • value: number

    Returns void

Methods

  • Marks the object as dirty.

    Parameters

    Returns void

  • Allows modifying this object multiple times in a row in a scope, without marking the object dirty immediately. Dirty flags are accumulated and the object is marked dirty at the end.

    Parameters

    • action: (() => void)

      The scope where the object is modified.

        • (): void
        • Returns void

    Returns void

Events

onDirty: Event<[dirtyFlags: EnumValue<ManagedSettingsDirtyFlag, number>], void>

Event that is triggered when a member changes.