---
title: "addParticleSystem(_:transform:)"
framework: scenekit
role: symbol
role_heading: Instance Method
path: "scenekit/scnscene/addparticlesystem(_:transform:)"
---

# addParticleSystem(_:transform:)

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

## Declaration

```swift
func addParticleSystem(_ system: SCNParticleSystem, transform: SCNMatrix4)
```

```swift
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

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](scenekit/scnscene/particlesystems.md)
- [removeParticleSystem(_:)](scenekit/scnscene/removeparticlesystem(_:).md)
- [removeAllParticleSystems()](scenekit/scnscene/removeallparticlesystems().md)
