Instance Property

particleZPositionRange

The range of allowed random values for a particle’s depth.

Declaration

var particleZPositionRange: CGFloat { get set }

Discussion

The default value is 0.0. If non-zero, the z position of each particle is randomly determined and may vary by plus or minus half of the range value.

See Also

Controlling Particle Position

var particlePosition: CGPoint

The average starting position for a particle.

var particlePositionRange: CGVector

The range of allowed random values for a particle’s position.

var particleZPosition: CGFloat

The average starting depth of a particle.