Creates a field that applies random forces to objects in its area of effect.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The amount of randomness in the field. A value of
0specifies maximum noise, and a value of
1specifies no noise at all.
The field’s variation over time. Specify
0for a static field.
A physics field object. To use the field in a scene, attach it to the
physics property of an
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.