SKFieldNode.CreateVelocityField 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.
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