Returns the local transform matrix as of the specified time sample.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Model I/O
Declaration
optional func localTransform(atTime time: Time Interval) -> matrix _float4x4
Parameters
time
The time sample for which to request information.
Return Value
The local transformation matrix for the specified time sample.
Discussion
This matrix defines the position, orientation, shear, and scale for any object affected by the transform component, relative to the coordinate space of its parent, as of the specified time sample.
Requesting a sample outside the time range clamps returned values using the minimum
and maximum
properties. Some asset formats support continuous sampling, with interpolation for times between the samples stored in the asset; others are discrete. For an asset with discrete time information, requesting a sample time in between the samples stored in the asset returns data for the immediately preceding time.