次の方法で共有


SKPhysicsBody.ApplyForce メソッド

定義

オーバーロード

ApplyForce(CGVector)

ニュートンで、物理本体の質量の中心を通って 1 回のステップの力を適用します。

ApplyForce(CGVector, CGPoint)

1 回のステップの指定したポイントに、ニュートンの力を適用します。

ApplyForce(CGVector)

ニュートンで、物理本体の質量の中心を通って 1 回のステップの力を適用します。

[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)

1 回のステップの指定したポイントに、ニュートンの力を適用します。

[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
属性

適用対象