<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNPhysicsBody/clearAllForces()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNPhysicsBody(im)clearAllForces"
  },
  "title" : "clearAllForces()"
}
-->

# clearAllForces()

Cancels all continuous forces and torques acting on the physics body during the current simulation step.

```
func clearAllForces()
```

## Discussion

When you pass <doc://com.apple.documentation/documentation/Swift/false> for the `impulse` parameter in the [`applyForce(_:asImpulse:)`](/documentation/SceneKit/SCNPhysicsBody/applyForce(_:asImpulse:)), [`applyForce(_:at:asImpulse:)`](/documentation/SceneKit/SCNPhysicsBody/applyForce(_:at:asImpulse:)), or [`applyTorque(_:asImpulse:)`](/documentation/SceneKit/SCNPhysicsBody/applyTorque(_:asImpulse:)) method, SceneKit waits until the end of the current simulation step before applying its effect. At that time, SceneKit sums all forces and torques applied during that simulation step and changes the velocity or angular velocity of the body according to the net effect of those forces and torques.

Call [`clearAllForces()`](/documentation/SceneKit/SCNPhysicsBody/clearAllForces()) to cancel any forces and torques previously applied during the current simulation step.

---

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)