|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgestalt.util.CameraMover
public class CameraMover
| Field Summary | |
|---|---|
static int |
BACKWARDS
keycode value of the key that triggers a backwards movement. |
static int |
DOWN
keycode value of the key that triggers a down movement. |
static int |
DUMP
keycode value of the key that dumps camera properties. |
static int |
FORWARD
keycode value of the key that triggers a forward movement. |
static int |
FOVY_DECREASE
keycode value of the key that decreases the camera field of vision (Y). |
static int |
FOVY_INCREASE
keycode value of the key that increases the camera field of vision (Y). |
static int |
LEFT
keycode value of the key that triggers a left movement. |
static int |
MODE_LOOKAT
keycode value of the key that switches the camera to 'CAMERA_MODE_LOOK_AT'. |
static int |
MODE_ROTATE
keycode value of the key that switches the camera to 'CAMERA_MODE_ROTATE_XYZ'. |
static float |
movespeed
the speed in units per second in which the camera is moved. |
static int |
RESET
reset camera position |
static int |
RIGHT
keycode value of the key that triggers a right movement. |
static float |
turnspeed
the speed in units per second in which the camera is rotated. |
static int |
UP
keycode value of the key that triggers an up movement. |
| Constructor Summary | |
|---|---|
CameraMover()
|
|
| Method Summary | |
|---|---|
static void |
handleKeyEvent(Camera theCamera,
EventHandler theEvent,
float theDeltaTime)
handle key events produced by the eventhandler with the specified camera object in relation to the delta time in seconds. |
static void |
reset(Camera theCamera)
set some camera properties to values that could be considered 'default'. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static float movespeed
public static float turnspeed
public static int FORWARD
public static int BACKWARDS
public static int LEFT
public static int RIGHT
public static int UP
public static int DOWN
public static int DUMP
public static int RESET
public static int FOVY_INCREASE
public static int FOVY_DECREASE
public static int MODE_ROTATE
public static int MODE_LOOKAT
| Constructor Detail |
|---|
public CameraMover()
| Method Detail |
|---|
public static void reset(Camera theCamera)
theCamera - CameratheScreenHeight - int
public static void handleKeyEvent(Camera theCamera,
EventHandler theEvent,
float theDeltaTime)
theCamera - CameratheEvent - EventHandlertheDeltaTime - float
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||