Contents

look(at:from:)

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

Declaration

func look(at focusPosition: vector_float3, from cameraPosition: vector_float3)

Parameters

  • focusPosition:

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

  • cameraPosition:

    The new position, in world space coordinates, for the camera.

Discussion

When calculating the new camera position and 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