|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.input.action.InputAction
apps.mt3dmaps.orbittest.OrbitAction
public class OrbitAction
Orbits the camera around a specified target position and also handles translation of the target position.
Constructor Summary | |
---|---|
OrbitAction(com.jme.renderer.Camera camera)
Constructor. |
Method Summary | |
---|---|
boolean |
getEnabled()
Returns the enabled state of this input action. |
com.jme.math.Vector3f |
getTargetPosition()
Returns a copy of the target position in world coordinates. |
void |
performAction(com.jme.input.action.InputActionEvent evt)
Handles camera updates based on input events. |
void |
setEnabled(boolean enabled)
Sets the enabled state of this input action. |
void |
setSpeed(float speed)
setSpeed sets the sensitivity of the input. |
void |
setTargetPosition(com.jme.math.Vector3f position,
boolean updateCamera)
Sets the orbit target position in world coordinates. |
void |
setWheelDirection(boolean reversed)
Reverse the direction of the mouse wheel input. |
Methods inherited from class com.jme.input.action.InputAction |
---|
getSpeed |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrbitAction(com.jme.renderer.Camera camera)
camera
- That camera that will be controlled by this input handler.Method Detail |
---|
public boolean getEnabled()
public com.jme.math.Vector3f getTargetPosition()
public void performAction(com.jme.input.action.InputActionEvent evt)
evt
- the evtpublic void setEnabled(boolean enabled)
enabled
- True to enablepublic void setSpeed(float speed)
setSpeed
sets the sensitivity of the input.
setSpeed
in class com.jme.input.action.InputAction
speed
- sensitivity of the input.public void setTargetPosition(com.jme.math.Vector3f position, boolean updateCamera)
position
- Values are set from this positionupdateCamera
- Forces the camera to update its directionpublic void setWheelDirection(boolean reversed)
reversed
- the new wheel direction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |