---
title: "setWorldTransform(_:)"
framework: scenekit
role: symbol
role_heading: Instance Method
path: "scenekit/scnnode/setworldtransform(_:)"
---

# setWorldTransform(_:)

Sets the world transform applied to the node.

## Declaration

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

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

## Parameters

- `worldTransform`: The new transform matrix, relative to the scene coordinate space, to apply to the node.

## Discussion

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

- [simdWorldTransform](scenekit/scnnode/simdworldtransform.md)
- [parent](scenekit/scnnode/parent.md)

### Managing Transforms in World Space (SceneKit Types)

- [worldTransform](scenekit/scnnode/worldtransform.md)
- [worldOrientation](scenekit/scnnode/worldorientation.md)
- [worldPosition](scenekit/scnnode/worldposition.md)
