SKAction.CreateApplyForce 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CreateApplyForce(CGVector, Double) |
用于创建 SKAction 应用于 |
CreateApplyForce(CGVector, CGPoint, Double) |
CreateApplyForce(CGVector, Double)
用于创建 SKAction 应用于 force
对象的 重心 SKNode 的 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
参数
- 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
返回
- 属性