com.jme.input.action
Class KeyStrafeDownAction
java.lang.Object
com.jme.input.action.InputAction
com.jme.input.action.KeyInputAction
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
Constructor Summary |
KeyStrafeDownAction(Camera camera,
float speed)
Constructor instantiates a new KeyStrafeDownAction object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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)