Type Method


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



+ (matrix_float4x4)globalTransformWithObject:(MDLObject *)object atTime:(NSTimeInterval)time;



An object with a transform component.


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.


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 object loaded from a 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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software