SKPhysicsBody.ApplyForce 方法

定义

重载

ApplyForce(CGVector)

在牛顿中通过物理体的质量中心应用一次力。

ApplyForce(CGVector, CGPoint)

在一个时间步的指定点处在牛顿中应用力。

ApplyForce(CGVector)

在牛顿中通过物理体的质量中心应用一次力。

[Foundation.Export("applyForce:")]
public virtual void ApplyForce (CoreGraphics.CGVector force);
abstract member ApplyForce : CoreGraphics.CGVector -> unit
override this.ApplyForce : CoreGraphics.CGVector -> unit

参数

force
CGVector
属性

适用于

ApplyForce(CGVector, CGPoint)

在一个时间步的指定点处在牛顿中应用力。

[Foundation.Export("applyForce:atPoint:")]
public virtual void ApplyForce (CoreGraphics.CGVector force, CoreGraphics.CGPoint point);
abstract member ApplyForce : CoreGraphics.CGVector * CoreGraphics.CGPoint -> unit
override this.ApplyForce : CoreGraphics.CGVector * CoreGraphics.CGPoint -> unit

参数

force
CGVector
point
CGPoint
属性

适用于