<!--
{
  "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/SpinAction/init(revolutions:localAxis:timingFunction:isAdditive:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation10SpinActionV11revolutions9localAxis14timingFunction10isAdditiveACSf_s5SIMD3VySfGAA015AnimationTimingI0VSbtcfc"
  },
  "title" : "init(revolutions:localAxis:timingFunction:isAdditive:)"
}
-->

# init(revolutions:localAxis:timingFunction:isAdditive:)

Creates a new spin action.

```
init(revolutions: Float, localAxis: SIMD3<Float> = [0, 1, 0], timingFunction: AnimationTimingFunction = .default, isAdditive: Bool = false)
```

## Parameters

`revolutions`

The number of rotations to complete before stopping.

`localAxis`

A vector that describes the axis of rotation (in local space).

`timingFunction`

A timing function that controls the progress of the animation.

`isAdditive`

A Boolean value that indicates whether the animation system additively blends
the action’s output with the base value.

---

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)