<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNScene/addParticleSystem(_:transform:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNScene(im)addParticleSystem:withTransform:"
  },
  "title" : "addParticleSystem(_:transform:)"
}
-->

# addParticleSystem(_:transform:)

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

```
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`](/documentation/SceneKit/SCNNode) method.

For details on particle systems, see [`SCNParticleSystem`](/documentation/SceneKit/SCNParticleSystem).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)