SKFieldNode.CreateLinearGravityField(Vector4) Method

Definition

Creates a node that accelerates bodies in the specified direction, relative to the node.

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

Parameters

direction
Vector4

Returns

Attributes

Applies to