---
title: "init(parameterID:controlPoints:relativeTime:)"
framework: corehaptics
role: symbol
role_heading: Initializer
path: "corehaptics/chhapticparametercurve/init(parameterid:controlpoints:relativetime:)"
---

# init(parameterID:controlPoints:relativeTime:)

Creates a parameter curve from its parameter ID, control points, and start time.

## Declaration

```swift
init(parameterID: CHHapticDynamicParameter.ID, controlPoints: [CHHapticParameterCurve.ControlPoint], relativeTime: TimeInterval)
```

## Parameters

- `parameterID`: The ID indicating the type of the dynamic parameter that the parameter curve is modifying.
- `controlPoints`: An array of control points defining how the parameter curve changes over time.
- `relativeTime`: The time at which to start applying the parameter curve.

## See Also

### Creating a Curve

- [CHHapticParameterCurve.ControlPoint](corehaptics/chhapticparametercurve/controlpoint.md)
