Contents

look(at:)

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

Declaration

func look(at worldTarget: SCNVector3)

Parameters

  • worldTarget:

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

Discussion

Using this method is equivalent to calling the look(at:up:localFront:) method and passing the node’s worldUp and localFront 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 (SceneKit Types)