|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.input.action.InputAction
com.jme.input.action.KeyInputAction
com.jme.input.action.KeyNodeStrafeLeftAction
public class KeyNodeStrafeLeftAction
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.
Field Summary |
---|
Fields inherited from class com.jme.input.action.InputAction |
---|
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.InputAction |
---|
getSpeed, setSpeed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyNodeStrafeLeftAction(Spatial node, float speed)
KeyNodeStrafeLeftAction
object.
node
- the node to move along the left vector.speed
- the speed at which to move the node.Method Detail |
---|
public void performAction(InputActionEvent evt)
performAction
moves the node along the left vector for a
given distance of speed * time.
evt
- the event that triggered the perform action method.InputActionInterface.performAction(InputActionEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |