env3d
Class EnvCamera

java.lang.Object
  extended by com.jme3.input.FlyByCamera
      extended by env3d.EnvCamera
All Implemented Interfaces:
com.jme3.input.controls.ActionListener, com.jme3.input.controls.AnalogListener, com.jme3.input.controls.InputListener

public class EnvCamera
extends com.jme3.input.FlyByCamera


Field Summary
 
Fields inherited from class com.jme3.input.FlyByCamera
cam, canRotate, dragToRotate, enabled, initialUpVec, inputManager, invertY, motionAllowed, moveSpeed, rotationSpeed, zoomSpeed
 
Constructor Summary
EnvCamera(com.jme3.renderer.Camera cam)
           
 
Method Summary
 double getPitch()
          Get the pitch (up and down) angle of the camera, in degrees.
 double getYaw()
          Get the yaw (up and down) angle of the camera, in degrees.
 void onAction(java.lang.String name, boolean value, float tpf)
           
 void registerWithInput(com.jme3.input.InputManager inputManager)
           
 void reset()
           
 void rotateLeftRight(double angle)
           
 void rotateUpDown(double angle)
           
 void setPitch(double angle)
           
 void setYaw(double angle)
           
 
Methods inherited from class com.jme3.input.FlyByCamera
getMoveSpeed, getRotationSpeed, getZoomSpeed, isDragToRotate, isEnabled, mapJoystick, moveCamera, onAnalog, riseCamera, rotateCamera, setDragToRotate, setEnabled, setMotionAllowedListener, setMoveSpeed, setRotationSpeed, setUpVector, setZoomSpeed, unregisterInput, zoomCamera
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvCamera

public EnvCamera(com.jme3.renderer.Camera cam)
Method Detail

reset

public void reset()

setPitch

public void setPitch(double angle)

setYaw

public void setYaw(double angle)

rotateLeftRight

public void rotateLeftRight(double angle)

rotateUpDown

public void rotateUpDown(double angle)

getPitch

public double getPitch()
Get the pitch (up and down) angle of the camera, in degrees. This is in relation to the default camera orientation (0, 0, -1)

Returns:
the camera pitch in degrees

getYaw

public double getYaw()
Get the yaw (up and down) angle of the camera, in degrees. This is in relation to the default camera orientation (0, 0, -1)

Returns:
the camera yaw in degrees

registerWithInput

public void registerWithInput(com.jme3.input.InputManager inputManager)
Overrides:
registerWithInput in class com.jme3.input.FlyByCamera

onAction

public void onAction(java.lang.String name,
                     boolean value,
                     float tpf)
Specified by:
onAction in interface com.jme3.input.controls.ActionListener
Overrides:
onAction in class com.jme3.input.FlyByCamera