worldPosition
The node’s position relative to the scene’s world coordinate space.
Declaration
var worldPosition: SCNVector3 { get set }Discussion
This vector isolates the translational aspect of the node’s worldTransform matrix, which in turn is the conversion of the node’s transform from local space to the scene’s world coordinate space. That is, it expresses the x, y, and z offsets of the node’s position from that of the scene’s rootNode, and is equivalent to reading the node’s position vector and converting it to world space with the convertPosition(_:from:) or convertPosition(_:to:) method.