<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKAction/applyTorque(_:duration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKAction(cm)applyTorque:duration:"
  },
  "title" : "applyTorque(_:duration:)"
}
-->

# applyTorque(_:duration:)

Creates an action that applies a torque to a node’s physics body.

```
class func applyTorque(_ torque: CGFloat, duration: TimeInterval) -> SKAction
```

## Parameters

`torque`

The amount of torque, in Newton-meters.

`duration`

The duration over which the torque is applied to the physics body.

## Return Value

A new action object.

## Discussion

When the action executes, the torque is applied continuously to the physics body for the duration of the action. This action generates an angular acceleration on the body without causing any linear acceleration.

This action is reversible; it applies an equal torque in the opposite direction.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)