---
title: "convertTransform(_:from:)"
framework: scenekit
role: symbol
role_heading: Instance Method
path: "scenekit/scnnode/converttransform(_:from:)"
---

# convertTransform(_:from:)

Converts a transform to the node’s local coordinate space from that of another node.

## Declaration

```swift
func convertTransform(_ transform: SCNMatrix4, from node: SCNNode?) -> SCNMatrix4
```

```swift
func convertTransform(_ transform: SCNMatrix4, from node: SCNNode?) -> SCNMatrix4
```

## Parameters

- `transform`: A transform relative to the local coordinate space defined by the other node.
- `node`: Another node in the same scene graph as the node, or nil to convert from the scene’s world coordinate space.

## Return Value

Return Value A transform relative to the node’s coordinate space.

## See Also

### Related Documentation

- [simdConvertTransform(_:from:)](scenekit/scnnode/simdconverttransform(_:from:).md)

### Converting Between Coordinate Spaces (SceneKit Types)

- [convertPosition(_:from:)](scenekit/scnnode/convertposition(_:from:).md)
- [convertPosition(_:to:)](scenekit/scnnode/convertposition(_:to:).md)
- [convertTransform(_:to:)](scenekit/scnnode/converttransform(_:to:).md)
- [convertVector(_:from:)](scenekit/scnnode/convertvector(_:from:).md)
- [convertVector(_:to:)](scenekit/scnnode/convertvector(_:to:).md)
