|
|||||||||||
| 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.KeyRotateLeftAction
KeyRotateLeftAction performs the action of rotating a camera a
certain angle. This angle is determined by the speed at which the camera can
turn and the time between frames.
| Field Summary |
| Fields inherited from class com.jme.input.action.KeyInputAction |
allowsRepeats, key, keyChar, speed |
| Constructor Summary | |
KeyRotateLeftAction(Camera camera,
float speed)
Constructor instantiates a new KeyRotateLeftAction object. |
|
| Method Summary | |
void |
performAction(InputActionEvent evt)
performAction rotates the camera a certain angle. |
void |
setLockAxis(Vector3f lockAxis)
setLockAxis allows a certain axis to be locked, meaning
the camera will always be within the plane of the locked axis. |
| 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 KeyRotateLeftAction(Camera camera,
float speed)
KeyRotateLeftAction object.
camera - the camera to rotate.speed - the speed at which to rotate.| Method Detail |
public void setLockAxis(Vector3f lockAxis)
setLockAxis allows a certain axis to be locked, meaning
the camera will always be within the plane of the locked axis. For
example, if the camera is a first person camera, the user might lock the
camera's up vector. This will keep the camera vertical of the ground.
lockAxis - the axis to lock.public void performAction(InputActionEvent evt)
performAction rotates the camera a certain angle.
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 | ||||||||||