Contents

birthLocation

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

Declaration

var birthLocation: SCNParticleBirthLocation { get set }

Discussion

This property defines locations for spawning new particles relative to the geometry specified in the emitterShape property. This property has no effect if the emitterShape property value is nil.

For example, if the emitter shape is an SCNBox geometry and the birth location is SCNParticleBirthLocation.vertex, new particles may randomly spawn at any of the eight corners of the box.

The default value is SCNParticleBirthLocation.surface, specifying that new particles spawn at random locations along the surface of the emitterShape geometry. For possible values, see SCNParticleBirthLocation.

See Also

Managing Particle Emission Locations