<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNNode/rotate(by:aroundTarget:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNNode(im)rotateBy:aroundTarget:"
  },
  "title" : "rotate(by:aroundTarget:)"
}
-->

# rotate(by:aroundTarget:)

Changes the node’s position and orientation, relative to its current transform, through a rotation around the specified point in scene space.

```
func rotate(by worldRotation: SCNQuaternion, aroundTarget worldTarget: SCNVector3)
```

## Parameters

`worldRotation`

The axis and angle of rotation to apply, in scene space, expressed as a quaternion.

`worldTarget`

The center point, in scene space, about which to rotate.

## Discussion

The effects of this method are animatable; that is, calling this method during an implicit-animation transaction animates the rotation effect. (See [Animating SceneKit Content](/documentation/SceneKit/animating-scenekit-content).)

## See Also

[`simdRotate(by:aroundTarget:)`](/documentation/SceneKit/SCNNode/simdRotate(by:aroundTarget:))

Changes the node’s position and orientation, relative to its current transform, through a rotation around the specified point in scene space.



---

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)