Instance Property

xAcceleration

The acceleration to apply to a particle’s horizontal velocity.

Declaration

var xAcceleration: CGFloat { get set }

Discussion

This property is useful for simulating wind, gravity and other effects. It is uniformly applied to all particles generated by the emitter.

The default value is 0.0.

See Also

Controlling Particle Velocity and Acceleration

var particleSpeed: CGFloat

The average initial speed of a new particle, in points per second.

var particleSpeedRange: CGFloat

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

var emissionAngle: CGFloat

The average initial direction of a particle, expressed as an angle in radians.

var emissionAngleRange: CGFloat

The range of allowed random values for a particle’s initial direction, expressed as an angle in radians.

var yAcceleration: CGFloat

The acceleration to apply to a particle’s vertical velocity.

var particleZPositionSpeed: CGFloat

The speed at which the particle’s depth changes.

Deprecated