simdConvertPosition(_:to:)
Converts a position from the node’s local coordinate space to that of another node.
Declaration
func simdConvertPosition(_ position: simd_float3, to node: SCNNode?) -> simd_float3Parameters
- position:
A position in the node’s local coordinate space.
- node:
Another node in the same scene graph as the node, or
nilto convert to the scene’s world coordinate space.
Return Value
A position in the local coordinate space defined by the other node.