共用方式為


SKAction.CreateApplyForce 方法

定義

多載

CreateApplyForce(CGVector, Double)

建立 SKAction 的 Factory 方法,其適用于 force 物件 的 PhysicsBody 重力 SKNode 中心。

CreateApplyForce(CGVector, CGPoint, Double)

CreateApplyForce(CGVector, Double)

建立 SKAction 的 Factory 方法,其適用于 force 物件 的 PhysicsBody 重力 SKNode 中心。

[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

參數

force
CGVector
duration
Double

傳回

屬性

適用於

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

參數

force
CGVector
point
CGPoint
duration
Double

傳回

屬性

適用於