SKPhysicsBody.ApplyForce Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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