|
||||||||||
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.KeyLookDownAction
public class KeyLookDownAction
KeyLookDownAction
tilts a camera down a given angle. This
angle should be represented as a radian.
Field Summary |
---|
Fields inherited from class com.jme.input.action.InputAction |
---|
speed |
Constructor Summary | |
---|---|
KeyLookDownAction(Camera camera,
float speed)
Constructor instantiates a new KeyLookDownAction object. |
Method Summary | |
---|---|
void |
performAction(InputActionEvent evt)
performAction adjusts the view of the camera to tilt down
a given angle. |
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 KeyLookDownAction(Camera camera, float speed)
KeyLookDownAction
object.
camera
- the camera to tilt.speed
- the speed at which the camera tilts.Method Detail |
---|
public void performAction(InputActionEvent evt)
performAction
adjusts the view of the camera to tilt down
a given angle. This angle is determined by the camera's speed and the
time which has passed.
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 |