---
title: "init(x:y:z:)"
framework: gamecontroller
role: symbol
role_heading: Initializer
path: "gamecontroller/gcacceleration/init(x:y:z:)"
---

# init(x:y:z:)

Creates an acceleration structure with the specified values.

## Declaration

```swift
init(x: Double, y: Double, z: Double)
```

## Parameters

- `x`: The gravitational force on the x-axis.
- `y`: The gravitational force on the y-axis.
- `z`: The gravitational force on the z-axis.
