Instance Property

particleLifeSpanVariation

The range, in seconds, of randomized particle life spans. Animatable.

Declaration

@property(nonatomic) CGFloat particleLifeSpanVariation;

Discussion

Setting a nonzero value for this property randomizes the effect of the particleLifeSpan property. SceneKit randomly adjusts the life span of each particle by up to half the particleLifeSpanVariation value. For example, if the particleLifeSpan value is 1.0 seconds and the particleLifeSpanVariation value is 0.5 seconds, each particle appears for a random duration between 0.75 and 1.25 seconds before being removed from the scene.

The default value is 0.0 seconds, specifying no randomization.

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

See Also

Managing Particle Motion

particleAngle

The rotation angle, in degrees, of newly spawned particles. Animatable.

particleAngleVariation

The range, in degrees of randomized initial particle angles. Animatable.

particleVelocity

The initial speed, in units per second, for newly spawned particles. Animatable.

particleVelocityVariation

The range, in units per second, of randomized initial particle speeds. Animatable.

particleAngularVelocity

The initial spin rate, in degrees per second, of newly spawned particles. Animatable.

particleAngularVelocityVariation

The range, in degrees per second, of randomized initial angular velocities for particles. Animatable.

particleLifeSpan

The duration, in seconds, for which each particle is rendered before being removed from the scene. Animatable.