com.jme.input.action
Class KeyNodeStrafeLeftAction

java.lang.Object
  extended bycom.jme.input.action.KeyInputAction
      extended bycom.jme.input.action.KeyNodeStrafeLeftAction
All Implemented Interfaces:
InputAction

public class KeyNodeStrafeLeftAction
extends KeyInputAction

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

Version:
$Id: KeyNodeStrafeLeftAction.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.KeyInputAction
allowsRepeats, key, keyChar, speed
 
Constructor Summary
KeyNodeStrafeLeftAction(Spatial node, float speed)
          Constructor instantiates a new KeyNodeStrafeLeftAction object.
 
Method Summary
 void performAction(InputActionEvent evt)
          performAction moves the node along the left vector for a given distance of speed * time.
 
Methods inherited from class com.jme.input.action.KeyInputAction
allowsRepeats, getKey, getKeyChar, getSpeed, setAllowsRepeats, setKey, setKeyChar, setSpeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyNodeStrafeLeftAction

public KeyNodeStrafeLeftAction(Spatial node,
                               float speed)
Constructor instantiates a new KeyNodeStrafeLeftAction 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 node along the left vector for a given distance of speed * time.

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