Instance Property

worldPosition

The node's position relative to the scene's world coordinate space.

Declaration

@property(nonatomic) SCNVector3 worldPosition;

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:fromNode: or convertPosition:toNode: method.

See Also

Managing Transforms in World Space (SceneKit Types)

worldTransform

The world transform applied to the node.

- setWorldTransform:

Sets the world transform applied to the node.

worldOrientation

The node's orientation relative to the scene's world coordinate space.