addParticleSystem(_:transform:)
Attaches a particle system to the scene, using the specified transform.
Declaration
func addParticleSystem(_ system: SCNParticleSystem, transform: SCNMatrix4)func addParticleSystem(_ system: SCNParticleSystem, transform: SCNMatrix4)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.