ScaleAffector3D QML Type

Particle scale affector. More...

Import Statement: import QtQuick3D.Particles3D
Since: Qt 6.4
Inherits:

Affector3D

Properties

Detailed Description

Scale affector scales the particle size based on its lifetime and parameters.

Property Documentation

ScalingType : enumeration

Defines the scaling type of the affector.

ConstantDescription
ScaleAffector3D.LinearThe scale is calculated using the easing curve to interpolate between minimum and maximum scale size between duration milliseconds and then continues from the minimum size.
ScaleAffector3D.SewSawThe scale is calculated using the easing curve to interpolate between minimum and maximum scale size between duration milliseconds on a rising edge then continues from maximum to minimum on a falling edge.
ScaleAffector3D.SineWaveThe scale follows the sine wave. Easing curve is not used.
ScaleAffector3D.AbsSineWaveThe scale follows the sine wave except negative values are inverted. Easing curve is not used.
ScaleAffector3D.StepThe scale stays at minimum size until half of the duration milliseconds have passed then steps directly to the maximum size. Easing curve is not used.
ScaleAffector3D.SmoothStepThe scale smootly transitions from minimum to maximum size. Easing curve is not used.

duration : int

This property holds the duration of scaling cycle in milliseconds. The default is 1000.


easingCurve : EasingCurve

This property holds the easing curve providing more fine tuned control on how the scaling occurs. The easing curve is used with Linear and SewSaw scaling types. The default easing curve provides linear value between [0, 1].


maxSize : real

This property holds the maximum size the affector can scale the particle. The default is 1.0.


minSize : real

This property holds the minimum size the affector can scale the particle. The default is 1.0.


type : ScalingType

This property holds the scaling type of the affector. The default value is Linear.