<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNNode/setWorldTransform(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNNode(im)setWorldTransform:"
  },
  "title" : "setWorldTransform(_:)"
}
-->

# setWorldTransform(_:)

Sets the world transform applied to the node.

```
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`](/documentation/SceneKit/SCNNode/transform) property with that of its parent node, the parent’s parent, and so on up to the [`rootNode`](/documentation/SceneKit/SCNScene/rootNode) object of the scene.

## See Also

[`simdWorldTransform`](/documentation/SceneKit/SCNNode/simdWorldTransform)

The world transform applied to the node.

[`parent`](/documentation/SceneKit/SCNNode/parent)

The node’s parent in the scene graph hierarchy.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)