|
||||||||||
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.KeyStrafeRightAction
public class KeyStrafeRightAction
KeyStrafeLeftAction
defines an action that causes the camera
to move along the negative 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 | |
---|---|
KeyStrafeRightAction(Camera camera,
float speed)
Constructor instantiates a new KeyStrafeLeftAction 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 |
---|
public KeyStrafeRightAction(Camera camera, float speed)
KeyStrafeLeftAction
object.
camera
- the camera to move along the negative left vector.speed
- the speed at which to move the camera.Method Detail |
---|
public void performAction(InputActionEvent evt)
performAction
moves the camera along the negative 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 |