---
title: "look(at:up:localFront:)"
framework: scenekit
role: symbol
role_heading: Instance Method
path: "scenekit/scnnode/look(at:up:localfront:)"
---

# look(at:up:localFront:)

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

## Declaration

```swift
func look(at worldTarget: SCNVector3, up worldUp: SCNVector3, localFront: SCNVector3)
```

## Parameters

- `worldTarget`: The point, in world space, to face the node toward.
- `worldUp`: The direction vector, in world space, that should appear as “up” from the rotated node’s point of view.
- `localFront`: The direction vector, in the node’s local space, that should orient toward the target point.

## Discussion

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

## See Also

### Related Documentation

- [simdLook(at:up:localFront:)](scenekit/scnnode/simdlook(at:up:localfront:).md)

### Performing Node-Relative Operations (SceneKit Types)

- [rotate(by:aroundTarget:)](scenekit/scnnode/rotate(by:aroundtarget:).md)
- [localTranslate(by:)](scenekit/scnnode/localtranslate(by:).md)
- [localRotate(by:)](scenekit/scnnode/localrotate(by:).md)
- [look(at:)](scenekit/scnnode/look(at:).md)
