Static
viewView all for given bounding box. Ensures a sphere enclosing the bounding box is visible. Updates passed camera. Updated cameraComponent.farDistance is extended if needed to include bounds (Near Distance not changed).
CameraComponent of the selected camera.
TransformComponent of the selected camera.
Optional OrbitingCameraController component of the camera.
Bounding box to focus on. Must have Extents.
Optional viewport in pixels of window (0,0) for none.
Calculated Position of the camera.
Static
viewView all for given bounding box. Ensures a sphere enclosing the bounding box is visible. Update passed components. Either in CameraComponent/TransformComponent or OrbitingCameraController/CameraComponent. Updated cameraComponent.farDistance is extended if needed to include bounds (Near Distance not changed).
Camera to update
Bounding box to focus on. Must have Extents.
Optional viewport in pixels of window (0,0) for none.
Calculated Position of the camera.
Contains common operations for camera setup. Supports camera with default setup and camera with OrbitingCameraController component added. Uses:
See
CameraHelper for calculation.