simdRotate(by:aroundTarget:)
Changes the node’s position and orientation, relative to its current transform, through a rotation around the specified point in scene space.
Declaration
func simdRotate(by worldRotation: simd_quatf, aroundTarget worldTarget: simd_float3)Parameters
- worldRotation:
The axis and angle of rotation to apply, in scene space, expressed as a quaternion.
- worldTarget:
The center point, in scene space, about which to rotate.
Discussion
The effects of this method are animatable; that is, calling this method during an implicit-animation transaction animates the rotation effect. (See Animating SceneKit Content.)