herzog3d
Class Camera

java.lang.Object
  extended by herzog3d.Camera
All Implemented Interfaces:
java.lang.Cloneable

public class Camera
extends java.lang.Object
implements java.lang.Cloneable

Author:
Shannon Smith

Field Summary
static float JET_CHASE_DIST
           
static float JET_CHASE_HEIGHT
           
static float ROBOT_CHASE_DIST
           
static float ROBOT_CHASE_HEIGHT
           
 
Constructor Summary
Camera(Game game)
          Create a camera locked on to the given mech.
 
Method Summary
 Vector3f getPos()
          Get the position of the camera;
 Mech getTarget()
           
 void setMech(Mech mech)
           
 void transform()
           
 void update(float timeStep)
          Update the camera position, based on the target mech.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JET_CHASE_DIST

public static final float JET_CHASE_DIST
See Also:
Constant Field Values

JET_CHASE_HEIGHT

public static final float JET_CHASE_HEIGHT
See Also:
Constant Field Values

ROBOT_CHASE_DIST

public static final float ROBOT_CHASE_DIST
See Also:
Constant Field Values

ROBOT_CHASE_HEIGHT

public static final float ROBOT_CHASE_HEIGHT
See Also:
Constant Field Values
Constructor Detail

Camera

public Camera(Game game)
Create a camera locked on to the given mech.

Parameters:
target -
Method Detail

setMech

public void setMech(Mech mech)

update

public void update(float timeStep)
Update the camera position, based on the target mech.


transform

public void transform()

getPos

public Vector3f getPos()
Get the position of the camera;

Returns:

getTarget

public Mech getTarget()