com.jme.input.action
Class KeyStrafeUpAction

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

public class KeyStrafeUpAction
extends KeyInputAction

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

Version:
$Id: KeyStrafeUpAction.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
KeyStrafeUpAction(Camera camera, float speed)
          Constructor instantiates a new KeyStrafeUpAction object.
 
Method Summary
 Vector3f getUpVector()
           
 void performAction(InputActionEvent evt)
          performAction moves the camera along the 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

KeyStrafeUpAction

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

Parameters:
camera - the camera to move along the 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 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)