<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/force",
  "metadataVersion" : "0.1.0",
  "role" : "Namespace",
  "symbol" : {
    "kind" : "Namespace",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "force"
  },
  "title" : "force"
}
-->

# force

Apply physics forces including gravity, drag, noise, and twist.

## Topics

### Functions

[`void force::add(force)`](/documentation/ComputeGraph/force/add)

Adds a constant force vector to the current element.

[`void force::drag(linearDragFactor)`](/documentation/ComputeGraph/force/drag)

Applies linear drag to slow down the current element over time.

[`void force::gravity(gravity)`](/documentation/ComputeGraph/force/gravity)

Applies a gravity force to the current element

[`void force::noise(params)`](/documentation/ComputeGraph/force/noise)

Applies a noise force to the current element

[`void force::twist(origin, strength, attraction)`](/documentation/ComputeGraph/force/twist)

Applies a twisting force around a vertical axis through a specified origin point.

---

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)