com.jme.input.action
Class KeyLookDownAction

java.lang.Object
  extended by com.jme.input.action.InputAction
      extended by com.jme.input.action.KeyInputAction
          extended by com.jme.input.action.KeyLookDownAction
All Implemented Interfaces:
InputActionInterface

public class KeyLookDownAction
extends KeyInputAction

KeyLookDownAction tilts a camera down a given angle. This angle should be represented as a radian.

Version:
$Id: KeyLookDownAction.java 4131 2009-03-19 20:15:28Z blaine.dev $
Author:
Mark Powell

Field Summary
 
Fields inherited from class com.jme.input.action.InputAction
speed
 
Constructor Summary
KeyLookDownAction(Camera camera, float speed)
          Constructor instantiates a new KeyLookDownAction object.
 
Method Summary
 void performAction(InputActionEvent evt)
          performAction adjusts the view of the camera to tilt down a given angle.
 
Methods inherited from class com.jme.input.action.InputAction
getSpeed, setSpeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyLookDownAction

public KeyLookDownAction(Camera camera,
                         float speed)
Constructor instantiates a new KeyLookDownAction object.

Parameters:
camera - the camera to tilt.
speed - the speed at which the camera tilts.
Method Detail

performAction

public void performAction(InputActionEvent evt)
performAction adjusts the view of the camera to tilt down a given angle. This angle is determined by the camera's speed and the time which has passed.

Parameters:
evt - the event that triggered the perform action method.
See Also:
InputActionInterface.performAction(InputActionEvent)