---
title: "convertPosition(_:to:)"
framework: scenekit
role: symbol
role_heading: Instance Method
path: "scenekit/scnnode/convertposition(_:to:)"
---

# convertPosition(_:to:)

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

## Declaration

```swift
func convertPosition(_ position: SCNVector3, to node: SCNNode?) -> SCNVector3
```

## Parameters

- `position`: A position in the node’s local coordinate space.
- `node`: Another node in the same scene graph as the node, or nil to convert to the scene’s world coordinate space.

## Return Value

Return Value A position in the local coordinate space defined by the other node.

## See Also

### Related Documentation

- [simdConvertPosition(_:to:)](scenekit/scnnode/simdconvertposition(_:to:).md)

### Converting Between Coordinate Spaces (SceneKit Types)

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