com.jme.input.action
Class KeyStrafeRightAction

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

public class KeyStrafeRightAction
extends KeyInputAction

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

Version:
$Id: KeyStrafeRightAction.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
KeyStrafeRightAction(Camera camera, float speed)
          Constructor instantiates a new KeyStrafeLeftAction object.
 
Method Summary
 void performAction(InputActionEvent evt)
          performAction moves the camera along the negative left vector for a given distance of speed * time.
 
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

KeyStrafeRightAction

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

Parameters:
camera - the camera to move along the negative left 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 left vector for a given distance of speed * time.

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