---
title: "noiseField(smoothness:animationSpeed:)"
framework: scenekit
role: symbol
role_heading: Type Method
path: "scenekit/scnphysicsfield/noisefield(smoothness:animationspeed:)"
---

# noiseField(smoothness:animationSpeed:)

Creates a field that applies random forces to objects in its area of effect.

## Declaration

```swift
class func noiseField(smoothness: CGFloat, animationSpeed speed: CGFloat) -> SCNPhysicsField
```

## Parameters

- `smoothness`: The amount of randomness in the field. A value of 0.0 specifies maximum noise, and a value of 1.0 specifies no noise at all.
- `speed`: The field’s variation over time. Specify 0.0 for a static field.

## Return Value

Return Value A physics field object. To use the field in a scene, attach it to the physicsField property of an SCNNode object.

## Discussion

Discussion Use this field type to simulate effects involving random motion, such as fireflies or gently falling snow. In calculating the direction and strength of the field’s effect on an object, SceneKit uses a Perlin simplex noise function. This function produces a velocity field that varies over time. The default falloffExponent value for a noise field is 0.0, indicating that the field’s effect is constant throughout its area of effect. This field type ignores the field’s direction property.

## See Also

### Creating Physics Fields

- [drag()](scenekit/scnphysicsfield/drag().md)
- [vortex()](scenekit/scnphysicsfield/vortex().md)
- [radialGravity()](scenekit/scnphysicsfield/radialgravity().md)
- [linearGravity()](scenekit/scnphysicsfield/lineargravity().md)
- [turbulenceField(smoothness:animationSpeed:)](scenekit/scnphysicsfield/turbulencefield(smoothness:animationspeed:).md)
- [spring()](scenekit/scnphysicsfield/spring().md)
- [electric()](scenekit/scnphysicsfield/electric().md)
- [magnetic()](scenekit/scnphysicsfield/magnetic().md)
