---
title: "update(parameters:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/constantforceeffect/update(parameters:)"
---

# update(parameters:)

Calculates the constant forces for rigid bodies from the force effect.

## Declaration

```swift
func update(parameters: inout ForceEffectParameters)
```

## Parameters

- `parameters`: On input, the parameters that calculate forces to the affected physics bodies; on output, the updates to those forces.

## Discussion

Discussion The framework automatically calls this method for you at each physics simulation step, so you don’t need to call it yourself.
