<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/AnimationTimingFunction/cubicBezier(controlPoint1:controlPoint2:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation23AnimationTimingFunctionV11cubicBezier13controlPoint10H6Point2ACs5SIMD2VySfG_AItFZ"
  },
  "title" : "cubicBezier(controlPoint1:controlPoint2:)"
}
-->

# cubicBezier(controlPoint1:controlPoint2:)

Creates a timing function that accelerates and then decelerates towards
the target value with the cubic bezier shape specified by two control
points.

```
static func cubicBezier(controlPoint1: SIMD2<Float>, controlPoint2: SIMD2<Float>) -> AnimationTimingFunction
```

## Parameters

`controlPoint1`

The first control point for the cubic bezier function.

`controlPoint2`

The second control point for the cubic bezier function.

## Return Value

The cubic bezier timing function.

---

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)