---
title: "init(strength:direction:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/constantforceeffect/init(strength:direction:)"
---

# init(strength:direction:)

Creates a constant force effect.

## Declaration

```swift
init(strength: Double, direction: SIMD3<Float>)
```

## Parameters

- `strength`: The magnitude of the force.
- `direction`: The direction of the force relative to the effect’s transform.
