Instance Method


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


- (void)frameBoundingBox:(MDLAxisAlignedBoundingBox)boundingBox setNearAndFar:(BOOL)setNearAndFar;



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


If YES, the camera also adjusts its nearVisibilityDistance and farVisibilityDistance properties to place the specified region entirely within the camera’s viewing frustum. If NO, those properties remain unchanged, and the specified region may therefore lie outside the camera’s near and far limits.


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

- lookAt:

Orients the camera to face toward the specified point.

- lookAt:from:

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