SKAction.CreateApplyForce 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
CreateApplyForce(CGVector, Double) |
Factory method to create a SKAction that applies |
CreateApplyForce(CGVector, CGPoint, Double) |
CreateApplyForce(CGVector, Double)
Factory method to create a SKAction that applies force
to the center of gravity of a SKNode object's PhysicsBody.
[Foundation.Export("applyForce:duration:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public static SpriteKit.SKAction CreateApplyForce (CoreGraphics.CGVector force, double duration);
static member CreateApplyForce : CoreGraphics.CGVector * double -> SpriteKit.SKAction
Parameters
- force
- CGVector
- duration
- Double
Returns
- Attributes
Applies to
CreateApplyForce(CGVector, CGPoint, Double)
[Foundation.Export("applyForce:atPoint:duration:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public static SpriteKit.SKAction CreateApplyForce (CoreGraphics.CGVector force, CoreGraphics.CGPoint point, double duration);
static member CreateApplyForce : CoreGraphics.CGVector * CoreGraphics.CGPoint * double -> SpriteKit.SKAction
Parameters
- force
- CGVector
- point
- CGPoint
- duration
- Double
Returns
- Attributes