SKFieldNode.CreateLinearGravityField(Vector4) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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