Instance Property

emittingDirection

The initial direction for newly spawned particles. Animatable.

Declaration

@property(nonatomic) SCNVector3 emittingDirection;

Discussion

If the the emitterShape property value is nil or the birthDirection property value is SCNParticleBirthDirectionConstant, newly spawned particles emit in the direction specified by this property. You can randomize the direction of newly spawned particles with the spreadingAngle property.

The default value is the vector {0.0, 0.0, 1.0}, specifying that particles emit in the direction of the positive z-axis.

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

See Also

Managing Particle Emission Locations

emitterShape

The shape of the region of space where the system spawns new particles.

birthLocation

The possible locations for newly spawned particles, relative to the emitter shape.

SCNParticleBirthLocation

Options for the initial location of each emitted particle, used by the birthLocation property.

birthDirection

The possible initial directions for newly spawned particles, relative to the emitter shape.

SCNParticleBirthDirection

Options for the initial direction of each emitted particle, used by the birthDirection property.

spreadingAngle

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