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

# convertPosition(_:from:)

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

## Declaration

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

## Parameters

- `position`: A position in 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 position in the node’s local coordinate space.

## See Also

### Related Documentation

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

### Converting Between Coordinate Spaces (SceneKit Types)

- [convertPosition(_:to:)](scenekit/scnnode/convertposition(_:to:).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)
