com.jme.input.action
Class KeyNodeLookDownAction

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

public class KeyNodeLookDownAction
extends KeyInputAction

KeyNodeLookDownAction defines an action to tilt the node towards the node's negative up axis. The rotation is along the node's left vector (the first column of it's rotation matrix).

Version:
$Id: KeyNodeLookDownAction.java,v 1.13 2004/10/14 01:23:01 mojomonkey Exp $
Author:
Mark Powell

Field Summary
 
Fields inherited from class com.jme.input.action.InputAction
speed
 
Constructor Summary
KeyNodeLookDownAction(Spatial node, float speed)
          Constructor instatiates a new KeyNodeLookDownAction object using the supplied node and speed for it's rotation.
 
Method Summary
 void performAction(InputActionEvent evt)
          performAction rotates the node towards the nodes' negative up axis at a speed of movement 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

KeyNodeLookDownAction

public KeyNodeLookDownAction(Spatial node,
                             float speed)
Constructor instatiates a new KeyNodeLookDownAction object using the supplied node and speed for it's rotation. Speed is multiplied by the time per frame, providing a frame rate independant speed. Thus, speed should be considered in (unit/second).

Parameters:
node - the node that will be affected by this action.
speed - the speed at which the node can move.
Method Detail

performAction

public void performAction(InputActionEvent evt)
performAction rotates the node towards the nodes' negative up axis at a speed of movement speed * time. Where time is the time between frames and 1 corresponds to 1 second.

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