<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ForceEffectComponent/init(effects:simulationState:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation20ForceEffectComponentV7effects15simulationStateACSayAA0cD4Base_pG_AC010SimulationH0Otcfc"
  },
  "title" : "init(effects:simulationState:)"
}
-->

# init(effects:simulationState:)

Creates a force effect component.

```
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.

---

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)