---
title: "simdLocalRotate(by:)"
framework: scenekit
role: symbol
role_heading: Instance Method
path: "scenekit/scnnode/simdlocalrotate(by:)"
---

# simdLocalRotate(by:)

Changes the node’s orientation relative to its current orientation.

## Declaration

```swift
func simdLocalRotate(by rotation: simd_quatf)
```

## Parameters

- `rotation`: The axis and angle of rotation to apply, in node-local space, expressed as a quaternion.

## Discussion

Discussion This method rotates the node according to its simdPivot transform. 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

- [localRotate(by:)](scenekit/scnnode/localrotate(by:).md)

### Performing Node-Relative Operations

- [simdRotate(by:aroundTarget:)](scenekit/scnnode/simdrotate(by:aroundtarget:).md)
- [simdLocalTranslate(by:)](scenekit/scnnode/simdlocaltranslate(by:).md)
- [simdLook(at:)](scenekit/scnnode/simdlook(at:).md)
- [simdLook(at:up:localFront:)](scenekit/scnnode/simdlook(at:up:localfront:).md)
