Sets the orientation of the transform for the specified time sample.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Model I/O
The orientation, as Euler angles in radians, to set for the transform relative to its parent coordinate space.
The time sample with which to associate transform information.
The three components of the
rotation vector describe counterclockwise rotation around the corresponding axes. In a coordinate system where the negative z-axis direction is considered “forward”, these components are pitch (rotation about the x-axis), yaw (rotation about the y-axis), and roll (rotation about the z-axis).
Together with the translation, scale, and shear factors, rotation information defines the local coordinate space for any object affected by the transform, relative to a parent coordinate space. To work with the complete transform, use the
Setting a new rotation synthesizes a complete transform matrix by combining the new translation with the
shear factors for the specified time. If the new time is outside the range of the
maximum properties, this method updates those values to reflect the range of time samples stored in the transform object.