Edytuj

Udostępnij za pośrednictwem


SKFieldNode.CreateVelocityField Method

Definition

Overloads

CreateVelocityField(Vector4)

Creates a field that assigns a constant velocity to physics bodies.

CreateVelocityField(SKTexture)

Creates a field that interprets a texture as an array of normal velocity vectors and applies that velocity to objects that ecounter the corresponding locations.

CreateVelocityField(Vector4)

Creates a field that assigns a constant velocity to physics bodies.

[Foundation.Export("velocityFieldWithVector:")]
public static SpriteKit.SKFieldNode CreateVelocityField (OpenTK.Vector4 direction);
static member CreateVelocityField : OpenTK.Vector4 -> SpriteKit.SKFieldNode

Parameters

direction
Vector4

Returns

Attributes

Applies to

CreateVelocityField(SKTexture)

Creates a field that interprets a texture as an array of normal velocity vectors and applies that velocity to objects that ecounter the corresponding locations.

[Foundation.Export("velocityFieldWithTexture:")]
public static SpriteKit.SKFieldNode CreateVelocityField (SpriteKit.SKTexture velocityTexture);
static member CreateVelocityField : SpriteKit.SKTexture -> SpriteKit.SKFieldNode

Parameters

velocityTexture
SKTexture

Returns

Attributes

Applies to