|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.input.action.KeyInputAction
com.jme.input.action.KeyNodeForwardAction
KeyNodeForwardAction defines an action to move a
Spatial node along it's positive direction vector. The speed
of the node is defined by the speed and the value set in the
performAction method. The speed is set with construction or
the setSpeed method. This can be thought as units/second.
| Field Summary |
| Fields inherited from class com.jme.input.action.KeyInputAction |
allowsRepeats, key, keyChar, speed |
| Constructor Summary | |
KeyNodeForwardAction(Spatial node,
float speed)
Constructor creates a new KeyNodeForwardAction object. |
|
| Method Summary | |
void |
performAction(InputActionEvent evt)
performAction moves the node along it's positive direction
vector at a speed of movement 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 |
public KeyNodeForwardAction(Spatial node,
float speed)
KeyNodeForwardAction object.
During construction, the node to direct and the speed at which to move
the node is set.
node - the node that will be affected by this action.speed - the speed at which the camera can move.| Method Detail |
public void performAction(InputActionEvent evt)
performAction moves the node along it's positive direction
vector at a speed of movement speed * time. Where time is the time
between frames and 1 corresponds to 1 second.
evt - the event that triggered the perform action method.InputAction.performAction(InputActionEvent)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||