convertPosition(_:from:)
Converts a position to the node’s local coordinate space from that of another node.
Declaration
func convertPosition(_ position: SCNVector3, from node: SCNNode?) -> SCNVector3Parameters
- 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
nilto convert from the scene’s world coordinate space.
Return Value
A position in the node’s local coordinate space.