<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKFieldNode/turbulenceField(withSmoothness:animationSpeed:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKFieldNode(cm)turbulenceFieldWithSmoothness:animationSpeed:"
  },
  "title" : "turbulenceField(withSmoothness:animationSpeed:)"
}
-->

# turbulenceField(withSmoothness:animationSpeed:)

Creates a field node that applies a randomized acceleration to physics bodies.

```
class func turbulenceField(withSmoothness smoothness: CGFloat, animationSpeed speed: CGFloat) -> SKFieldNode
```

## Parameters

`smoothness`

The smoothness of the noise used to generate the forces. This parameter should be a value between `0.0` and `1.0`, where `1.0` represents a uniform smoothness.

`speed`

The speed at which the noise field should change. A value of `0.0` means that the field should not animate at all.

## Return Value

A new turbulence field node.

## Discussion

The acceleration’s magnitude is proportional to a body’s velocity.

---

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)