---
title: "rotate(by:aroundTarget:)"
framework: scenekit
role: symbol
role_heading: Instance Method
path: "scenekit/scnnode/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.

## Declaration

```swift
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

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.)

## See Also

### Related Documentation

- [simdRotate(by:aroundTarget:)](scenekit/scnnode/simdrotate(by:aroundtarget:).md)

### Performing Node-Relative Operations (SceneKit Types)

- [localTranslate(by:)](scenekit/scnnode/localtranslate(by:).md)
- [localRotate(by:)](scenekit/scnnode/localrotate(by:).md)
- [look(at:)](scenekit/scnnode/look(at:).md)
- [look(at:up:localFront:)](scenekit/scnnode/look(at:up:localfront:).md)
