Instance Property

transform

The transform applied to the node relative to its parent. Animatable.

Declaration

@property(nonatomic) SCNMatrix4 transform;

Discussion

The transformation is the combination of the node’s rotation, position, and scale properties. The default transformation is SCNMatrix4Identity.

When you set the value of this property, the node’s rotation, orientation, eulerAngles, position, and scale properties automatically change to match the new transform, and vice versa. SceneKit can perform this conversion only if the transform you provide is a combination of rotation, translation, and scale operations. If you set the value of this property to a skew transformation or to a nonaffine transformation, the values of these properties become undefined. Setting a new value for any of these properties causes SceneKit to compute a new transformation, discarding any skew or nonaffine operations in the original transformation.

You can animate changes to this property’s value. See Animating SceneKit Content.

See Also

Managing the Node’s Transform (SceneKit Types)

position

The translation applied to the node. Animatable.

rotation

The node’s orientation, expressed as a rotation angle about an axis. Animatable.

eulerAngles

The node’s orientation, expressed as pitch, yaw, and roll angles in radians. Animatable.

orientation

The node’s orientation, expressed as a quaternion. Animatable.

scale

The scale factor applied to the node. Animatable.

pivot

The pivot point for the node’s position, rotation, and scale. Animatable.