Instance Property

transform

A component that manages this object’s spatial transform and its changes over time.

Declaration

var transform: MDLTransformComponent? { get set }

Discussion

A transform defines the local coordinate space for an object’s content—that is, its position, orientation, shear, and scale—relative to the coordinate space of the object’s parent. The MDLTransformComponent protocol defines a general interface for objects that manage transforms, including time-based transform information for assets that include animation data. By default, Model I/O uses the MDLTransform object for this property; however, you can also use a custom class that adopts the MDLTransformComponent protocol to support alternative ways of calculating or storing transform data.

See Also

Working with Objects in Space

func boundingBox(atTime: TimeInterval) -> MDLAxisAlignedBoundingBox

Returns the minimum region entirely enclosing the object’s contents at the specified time sample.

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