---
title: "init(effects:simulationState:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/forceeffectcomponent/init(effects:simulationstate:)"
---

# init(effects:simulationState:)

Creates a force effect component.

## Declaration

```swift
init(effects: [any ForceEffectBase], simulationState: ForceEffectComponent.SimulationState = .start)
```

## Parameters

- `effects`: Array of effects to simulate forces with. Forces generated by each effect will be summed.
- `simulationState`: The simulation state request, the force effect automatically starts to play by default.
