Instance Property

particleSizeVariation

The range of randomized particle sizes. Animatable.

Declaration

@property(nonatomic) CGFloat particleSizeVariation;

Discussion

Setting a nonzero value for this property randomizes the effect of the particleSize property. SceneKit randomly adjusts the size of each particle by up to half the particleSizeVariation value. For example, if the particleSize value is 1.0 and the particleSizeVariation value is 0.5, newly spawned particles are randomly sized between 0.75 and 1.25 units wide and high.

The default value is 0.0, specifying no randomization.

You can animate changes to this property’s value. See Animating SceneKit Content.

See Also

Specifying Particle Appearance

particleSize

The rendered size, in units of the scene’s world coordinate space, of the particle image. Animatable.

particleColor

The color of newly spawned particles. Animatable.

particleColorVariation

The ranges of randomized particle color components. Animatable.

particleImage

The texture image SceneKit uses to render each particle.

fresnelExponent

The reflectivity exponent SceneKit uses when rendering the particle’s image as a cube map. Animatable.

stretchFactor

A multiplier for stretching particle images along their direction of motion. Animatable.