com.jme.input.action
Class KeyStrafeDownAction

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

public class KeyStrafeDownAction
extends KeyInputAction

KeyStrafeDownAction defines an action that causes the camera to move along the negative up vector. The speed at which it moves is set in the form of units per second.

Version:
$Id: KeyStrafeDownAction.java 4131 2009-03-19 20:15:28Z blaine.dev $
Author:
Mark Powell - suggestions by forum user Nodwick

Field Summary
 
Fields inherited from class com.jme.input.action.InputAction
speed
 
Constructor Summary
KeyStrafeDownAction(Camera camera, float speed)
          Constructor instantiates a new KeyStrafeDownAction object.
 
Method Summary
 Vector3f getUpVector()
           
 void performAction(InputActionEvent evt)
          performAction moves the camera along the negative up vector for a given distance of speed * time.
 void setUpVector(Vector3f upVector)
           
 
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

KeyStrafeDownAction

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

Parameters:
camera - the camera to move along the negative up vector.
speed - the speed at which to move the camera.
Method Detail

performAction

public void performAction(InputActionEvent evt)
performAction moves the camera along the negative up vector for a given distance of speed * time.

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

getUpVector

public Vector3f getUpVector()

setUpVector

public void setUpVector(Vector3f upVector)