Instance Method

setLocalTransform(_:forTime:)

Sets a new local transform matrix for the specified time sample.

Declaration

optional func setLocalTransform(_ transform: matrix_float4x4, forTime time: TimeInterval)

Parameters

transform

The local transformation matrix for the specified time sample.

time

The time sample with which to associate transform information.

Discussion

Calling this method updates the minimumTime and maximumTime properties to reflect the range of sample values stored in the transform component.

See Also

Working with Animated Transforms

var minimumTime: TimeInterval

The timestamp for the first timed data sample in the transform component.

Required.

var maximumTime: TimeInterval

The timestamp for the last timed data sample in the transform component.

Required.

func localTransform(atTime: TimeInterval) -> matrix_float4x4

Returns the local transform matrix as of 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