Bearbeiten

Freigeben über


SKPhysicsBody.ApplyForce Method

Definition

Overloads

ApplyForce(CGVector)

Applies a force, in Newtons, through the center of mass of the physics body for one time step.

ApplyForce(CGVector, CGPoint)

Applies a force, in Newtons, at the specified point for one time step.

ApplyForce(CGVector)

Applies a force, in Newtons, through the center of mass of the physics body for one time step.

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

Parameters

force
CGVector
Attributes

Applies to

ApplyForce(CGVector, CGPoint)

Applies a force, in Newtons, at the specified point for one time step.

[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

Parameters

force
CGVector
point
CGPoint
Attributes

Applies to