Instance Property

simdRotation

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

Declaration

@property(nonatomic) simd_float4 simdRotation;

Discussion

The four-component rotation vector specifies the direction of the rotation axis in the first three components and the angle of rotation (in radians) in the fourth. The default rotation is the zero vector, specifying no rotation. Rotation is applied relative to the node’s simdPivot property.

The simdRotation, simdEulerAngles, and simdOrientation properties all affect the rotational aspect of the node’s simdTransform property. Any change to one of these properties is reflected in the others.

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

See Also

Managing the Node's Transform

simdTransform

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

simdPosition

The translation applied to the node. Animatable.

simdEulerAngles

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

simdOrientation

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

simdScale

The scale factor applied to the node. Animatable.

simdPivot

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