---
title: "force::add"
framework: Compute Graph
role: symbol
role_heading: Function
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/force/add
---

# force::add

Adds a constant force vector to the current element.

## Declaration

```swift
void force::add(float3 force)
```

## Parameters

- `force`: The 3D force vector to add to the element.

## Discussion

Discussion This function applies a specified force to the element by adding it to the force accumulator. Multiple forces can be combined by calling this function (or other force functions) multiple times during simulation. note:
