Contents

setWorldTransform(_:)

Sets the world transform applied to the node.

Declaration

func setWorldTransform(_ worldTransform: SCNMatrix4)
func setWorldTransform(_ worldTransform: SCNMatrix4)

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

Related Documentation

Managing Transforms in World Space (SceneKit Types)