public class PerspectiveCamera extends Camera
| Modifier and Type | Field and Description |
|---|---|
float |
fieldOfView
the field of view of the height, in degrees
|
combined, direction, far, frustum, invProjectionView, near, position, projection, up, view, viewportHeight, viewportWidth| Constructor and Description |
|---|
PerspectiveCamera() |
PerspectiveCamera(float fieldOfViewY,
float viewportWidth,
float viewportHeight)
Constructs a new
PerspectiveCamera with the given field of view and viewport size. |
| Modifier and Type | Method and Description |
|---|---|
void |
update()
Recalculates the projection and view matrix of this camera and the
Frustum planes. |
void |
update(boolean updateFrustum)
Recalculates the projection and view matrix of this camera and the
Frustum planes if updateFrustum is
true. |
getPickRay, getPickRay, lookAt, lookAt, normalizeUp, project, project, rotate, rotate, rotate, rotate, rotateAround, transform, translate, translate, unproject, unprojectpublic PerspectiveCamera()
public PerspectiveCamera(float fieldOfViewY,
float viewportWidth,
float viewportHeight)
PerspectiveCamera with the given field of view and viewport size. The aspect ratio is derived from
the viewport size.fieldOfViewY - the field of view of the height, in degrees, the field of view for the width will be calculated
according to the aspect ratio.viewportWidth - the viewport widthviewportHeight - the viewport heightpublic void update()
CameraFrustum planes. Use this after you've manipulated
any of the attributes of the camera.