public class PerspectiveCamera extends Camera
| Modifier and Type | Field and Description |
|---|---|
float |
fieldOfView
the field of view in degrees
|
combined, direction, far, frustum, invProjectionView, near, position, projection, up, view, viewportHeight, viewportWidth| Constructor and Description |
|---|
PerspectiveCamera() |
PerspectiveCamera(float fieldOfView,
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. |
apply, getPickRay, getPickRay, lookAt, lookAt, normalizeUp, project, project, rotate, rotate, rotate, rotate, rotateAround, transform, translate, translate, unproject, unprojectpublic PerspectiveCamera()
public PerspectiveCamera(float fieldOfView,
float viewportWidth,
float viewportHeight)
PerspectiveCamera with the given field of view and viewport size. The apsect ratio is derrived from
the viewport size.fieldOfView - the field of view in degreesviewportWidth - the viewport widthviewportHeight - the viewport heightpublic void update()
CameraFrustum planes. Use this after you've manipulated
any of the attributes of the camera.