Share via


SKFieldNode.CreateTurbulenceField(NFloat, NFloat) Method

Definition

Creates a node that applies randomized forces to neighboring physics bodies, with an average force that is proportional to the physics body's speed.

[Foundation.Export("turbulenceFieldWithSmoothness:animationSpeed:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static SpriteKit.SKFieldNode CreateTurbulenceField(System.Runtime.InteropServices.NFloat smoothness, System.Runtime.InteropServices.NFloat speed);
[<Foundation.Export("turbulenceFieldWithSmoothness:animationSpeed:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateTurbulenceField : System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat -> SpriteKit.SKFieldNode

Parameters

smoothness
NFloat
speed
NFloat

Returns

Attributes

Applies to