Instance Method

setWorldTransform:

Sets the world transform applied to the node.

Declaration

- (void)setWorldTransform:(SCNMatrix4)worldTransform;

Parameters

worldTransform

The new transform matrix, relative to the scene coordinate space, to apply to the node.

Discussion

A world transform is the node’s coordinate space transform relative to the scene’s coordinate space. This transform is the concatenation of the node’s transform property with that of its parent node, the parent’s parent, and so on up to the rootNode object of the scene.

See Also

Managing Transforms in World Space (SceneKit Types)

worldTransform

The world transform applied to the node.

worldOrientation

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

worldPosition

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