com.jme3.scene.control
Class CameraControl
java.lang.Object
com.jme3.scene.control.AbstractControl
com.jme3.scene.control.CameraControl
- All Implemented Interfaces:
- Savable, Control
public class CameraControl
- extends AbstractControl
This Control maintains a reference to a Camera,
which will be synched with the position (worldTranslation)
of the current spatial.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CameraControl
public CameraControl()
- Constructor used for Serialization.
CameraControl
public CameraControl(Camera camera)
- Parameters:
camera
- The Camera to be synced.
CameraControl
public CameraControl(Camera camera,
CameraControl.ControlDirection controlDir)
- Parameters:
camera
- The Camera to be synced.
getCamera
public Camera getCamera()
setCamera
public void setCamera(Camera camera)
getControlDir
public CameraControl.ControlDirection getControlDir()
setControlDir
public void setControlDir(CameraControl.ControlDirection controlDir)
controlUpdate
protected void controlUpdate(float tpf)
- Description copied from class:
AbstractControl
- To be implemented in subclass.
- Specified by:
controlUpdate
in class AbstractControl
controlRender
protected void controlRender(RenderManager rm,
ViewPort vp)
- Description copied from class:
AbstractControl
- To be implemented in subclass.
- Specified by:
controlRender
in class AbstractControl
cloneForSpatial
public Control cloneForSpatial(Spatial newSpatial)
- Description copied from interface:
Control
- Creates a clone of the Control, the given Spatial is the cloned
version of the spatial to which this control is attached to.
- Returns:
- A clone of this control for the spatial
read
public void read(JmeImporter im)
throws java.io.IOException
- Specified by:
read
in interface Savable
- Overrides:
read
in class AbstractControl
- Throws:
java.io.IOException
write
public void write(JmeExporter ex)
throws java.io.IOException
- Specified by:
write
in interface Savable
- Overrides:
write
in class AbstractControl
- Throws:
java.io.IOException