Instance Method


Orients the camera to face toward the specified point.


func look(at focusPosition: vector_float3)



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


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

func frameBoundingBox(MDLAxisAlignedBoundingBox, setNearAndFar: Bool)

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

func look(at: vector_float3, from: vector_float3)

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software