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