com.jme.input.action
Class KeyNodeStrafeRightAction

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

public class KeyNodeStrafeRightAction
extends KeyInputAction

KeyNodeStrafeRightAction defines an action that moves a node along the negative left vector. The speed at which it moves is set and of the form units per second.

Version:
$Id: KeyNodeStrafeRightAction.java,v 1.12 2004/08/22 02:00:34 cep21 Exp $
Author:
Mark Powell

Field Summary
 
Fields inherited from class com.jme.input.action.InputAction
speed
 
Constructor Summary
KeyNodeStrafeRightAction(Spatial node, float speed)
          Constructor instantiates a new KeyNodeStrafeRightAction 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

KeyNodeStrafeRightAction

public KeyNodeStrafeRightAction(Spatial node,
                                float speed)
Constructor instantiates a new KeyNodeStrafeRightAction object.

Parameters:
node - the node to move along the left vector.
speed - the speed at which to move the node.
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)