gestalt.util
Class CameraMover

java.lang.Object
  extended by gestalt.util.CameraMover

public class CameraMover
extends java.lang.Object


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

movespeed

public static float movespeed
the speed in units per second in which the camera is moved.


turnspeed

public static float turnspeed
the speed in units per second in which the camera is rotated.


FORWARD

public static int FORWARD
keycode value of the key that triggers a forward movement.


BACKWARDS

public static int BACKWARDS
keycode value of the key that triggers a backwards movement.


LEFT

public static int LEFT
keycode value of the key that triggers a left movement.


RIGHT

public static int RIGHT
keycode value of the key that triggers a right movement.


UP

public static int UP
keycode value of the key that triggers an up movement.


DOWN

public static int DOWN
keycode value of the key that triggers a down movement.


DUMP

public static int DUMP
keycode value of the key that dumps camera properties.


RESET

public static int RESET
reset camera position


FOVY_INCREASE

public static int FOVY_INCREASE
keycode value of the key that increases the camera field of vision (Y).


FOVY_DECREASE

public static int FOVY_DECREASE
keycode value of the key that decreases the camera field of vision (Y).


MODE_ROTATE

public static int MODE_ROTATE
keycode value of the key that switches the camera to 'CAMERA_MODE_ROTATE_XYZ'.


MODE_LOOKAT

public static int MODE_LOOKAT
keycode value of the key that switches the camera to 'CAMERA_MODE_LOOK_AT'.

Constructor Detail

CameraMover

public CameraMover()
Method Detail

reset

public static void reset(Camera theCamera)
set some camera properties to values that could be considered 'default'.

Parameters:
theCamera - Camera
theScreenHeight - int

handleKeyEvent

public 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.

Parameters:
theCamera - Camera
theEvent - EventHandler
theDeltaTime - float


processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009