Instance Method

addParticleSystem:withTransform:

Attaches a particle system to the scene, using the specified transform.

Declaration

- (void)addParticleSystem:(SCNParticleSystem *)system withTransform:(SCNMatrix4)transform;

Parameters

system

A particle system.

transform

A transformation matrix that positions and orients the particle system relative to the world coordinate space of the scene.

Discussion

A particle system directly attached to a scene is not related to the coordinate space of any node in the scene. To attach a particle system whose emitter location follows the movement of a node within the scene, use the corresponding SCNNode method.

For details on particle systems, see SCNParticleSystem.

See Also

Working with Particle Systems in the Scene

particleSystems

The particle systems attached to the scene.

- removeParticleSystem:

Removes a particle system attached to the scene.

- removeAllParticleSystems

Removes any particle systems directly attached to the scene.