Contents

simdLook(at:)

Changes the node’s orientation so that its local forward vector points toward the specified location.

Declaration

func simdLook(at worldTarget: simd_float3)

Parameters

  • worldTarget:

    The point, in world space, to face the node toward.

Discussion

Using this method is equivalent to calling the simdLook(at:up:localFront:) method and passing the node’s simdWorldUp and simdLocalFront vectors for the corresponding parameters.

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.)

See Also

Related Documentation

Performing Node-Relative Operations