---
title: "applyForce(_:at:duration:)"
framework: spritekit
role: symbol
role_heading: Type Method
path: "spritekit/skaction/applyforce(_:at:duration:)"
---

# applyForce(_:at:duration:)

Creates an action that applies a force to a specific point on a node’s physics body.

## Declaration

```swift
class func applyForce(_ force: CGVector, at point: CGPoint, duration: TimeInterval) -> SKAction
```

## Parameters

- `force`: A vector that describes how much force is applied in each dimension. The force is measured in Newtons.
- `point`: A point in scene coordinates that defines where the force is applied to the physics body.
- `duration`: The duration over which the force is applied to the physics body.

## Return Value

Return Value A new action object.

## Discussion

Discussion When the action executes, the force is applied continuously to the physics body for the duration of the action. Because the force is applied to a specific point on the body, it may impart both linear acceleration and angular acceleration. This action is reversible; it applies an equal force in the opposite direction.

## See Also

### Animating Properties of a Node’s Physics Body

- [applyForce(_:duration:)](spritekit/skaction/applyforce(_:duration:).md)
- [applyTorque(_:duration:)](spritekit/skaction/applytorque(_:duration:).md)
- [applyImpulse(_:duration:)](spritekit/skaction/applyimpulse(_:duration:).md)
- [applyAngularImpulse(_:duration:)](spritekit/skaction/applyangularimpulse(_:duration:).md)
- [applyImpulse(_:at:duration:)](spritekit/skaction/applyimpulse(_:at:duration:).md)
- [applyImpulse(_:duration:)](spritekit/skaction/applyimpulse(_:duration:).md)
- [changeCharge(to:duration:)](spritekit/skaction/changecharge(to:duration:).md)
- [changeCharge(by:duration:)](spritekit/skaction/changecharge(by:duration:).md)
- [changeMass(to:duration:)](spritekit/skaction/changemass(to:duration:).md)
- [changeMass(by:duration:)](spritekit/skaction/changemass(by:duration:).md)
- [strength(to:duration:)](spritekit/skaction/strength(to:duration:).md)
- [strength(by:duration:)](spritekit/skaction/strength(by:duration:).md)
- [falloff(to:duration:)](spritekit/skaction/falloff(to:duration:).md)
- [falloff(by:duration:)](spritekit/skaction/falloff(by:duration:).md)
