ScaleAffector3D QML Type

Particle scale affector. 更多...

import 语句: import QtQuick3D.Particles3D
Since: Qt 6.4
继承: Affector3D

特性

详细描述

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

特性文档编制

ScalingType : enumeration

Defines the scaling type of the affector.

常量 描述
ScaleAffector3D.Linear The 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.SewSaw The 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.SineWave The scale follows the sine wave. Easing curve is not used.
ScaleAffector3D.AbsSineWave The scale follows the sine wave except negative values are inverted. Easing curve is not used.
ScaleAffector3D.Step The 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.SmoothStep The 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

此特性保持 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 .