Instance Method

lookAt:

Orients the camera to face toward the specified point.

Declaration

- (void)lookAt:(vector_float3)focusPosition;

Parameters

focusPosition

The point, in world space coordinates, to be made visible to the camera.

Discussion

When calculating the new camera orientation, this method assumes the camera points in the negative z-axis direction and that the positive y-axis represents the up direction for the camera’s view.

See Also

Managing Camera Position and Orientation

- frameBoundingBox:setNearAndFar:

Moves the camera such that the specified bounding box lies entirely within the camera’s field of view.

- lookAt:from:

Sets the camera’s position and orients the camera to face toward the specified point.