public class Camera extends SceneObject
Modifier and Type | Method and Description |
---|---|
Vector3 |
getLookDirection()
Get the direction which the camera is facing
|
float[] |
getViewMatrix()
Get the view matrix
|
Vector3 |
getWorldLookDirection()
Get the look diretion of the camera in world space
|
Vector3 |
getWorldUpVector() |
void |
setLookDirection(Vector3 lookDirection)
Set a new direction in which to look
|
void |
update()
Update the view matrix if the parent node changed
|
void |
use()
Use this camera
|
attachTo, detach, getAbsolutePos, getModelMatrix, getParent, getRelativePos, onTransformed
public Camera(Vector3 up)
public void setLookDirection(Vector3 lookDirection)
lookDirection
- The direction in which the camera will lookpublic Vector3 getLookDirection()
public void use()
public float[] getViewMatrix()
public void update()
public Vector3 getWorldLookDirection()
public Vector3 getWorldUpVector()