Instance Property

systemSpawnedOnDying

Another particle system to be added to the scene when a particle dies.

Declaration

@property(nonatomic, retain) SCNParticleSystem *systemSpawnedOnDying;

Discussion

When a particle reaches the end of its particleLifeSpan duration and is removed from the scene, SceneKit adds a copy of the specified particle system to the scene at the particle’s final location.

Use this property to simulate effects such as fireworks—one particle system simulates launching fireworks, and another particle system simulates each firework’s explosion.

The default value of this property is nil, specifying that no additional systems are added to the scene on particle death.

See Also

Spawning Additional Particle Systems

systemSpawnedOnCollision

Another particle system to be added to the scene when a particle collides with scene geometry.

systemSpawnedOnLiving

Another particle system to be added to the scene for each living particle in the system.