Instance Property

systemSpawnedOnCollision

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

Declaration

@property(nonatomic, retain) SCNParticleSystem *systemSpawnedOnCollision;

Discussion

When a particle collides with scene geometry, SceneKit adds a copy of the specified particle system to the scene at the location of the collision. (To define collision behavior, see the colliderNodes property.)

Use this property to simulate effects such as rain—one particle system simulates falling raindrops, and another particle system simulates the splashes that occur where each raindrop strikes a surface.

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

See Also

Spawning Additional Particle Systems

systemSpawnedOnDying

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

systemSpawnedOnLiving

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