<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLTransformComponent/globalTransform(with:atTime:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(pl)MDLTransformComponent(cm)globalTransformWithObject:atTime:"
  },
  "title" : "globalTransform(with:atTime:)"
}
-->

# globalTransform(with:atTime:)

Returns the absolute coordinate transformation for an object in a transform hierarchy.

```
optional static func globalTransform(with object: MDLObject, atTime time: TimeInterval) -> matrix_float4x4
```

## Parameters

`object`

An object with a transform component.

`time`

The time sample for which to request information.

## Return Value

The transform matrix that defines a local coordinate space relative to the root coordinate space of the hierarchy containing the object.

## Discussion

Asset file formats typically describe collections of meshes, models, or lights with a hierarchy of transforms relative to the scene containing them all. For example, if you call this method on a [`MDLMesh`](/documentation/ModelIO/MDLMesh) object loaded from a [`MDLAsset`](/documentation/ModelIO/MDLAsset) instance, Model I/O concatenates the local transformations of the mesh, its parent object, and any further parent objects to return the mesh’s transform relative to the root coordinate space of the scene that the asset describes.

---

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)