Instance Property

stretchFactor

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

Declaration

@property(nonatomic) CGFloat stretchFactor;

Discussion

Use this property to create visual effects that show streaks of motion, such as fireworks. If the orientationMode property value is SCNParticleOrientationModeFree, a non-default stretch factor stretches particle images in the y-axis direction of each particle’s local coordinate space.

The default value is 0.0, specifying that particle images maintain their original aspect ratio.

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.

particleSizeVariation

The range of randomized particle sizes. 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.