org.xith3d.schedops.movement
Class PointFocusser
java.lang.Object
org.xith3d.loop.opscheduler.impl.ScheduledOperationImpl
org.xith3d.schedops.movement.PointFocusser
- All Implemented Interfaces:
- ScheduledOperation, Updatable
public class PointFocusser
- extends ScheduledOperationImpl
The PointFocusser moves the camera smoothly to a certain point and facing
direction with a given speed.
|
Constructor Summary |
PointFocusser(View view,
org.openmali.vecmath2.Point3f point,
org.openmali.vecmath2.Vector3f direction,
float speed)
Creates a new instance. |
PointFocusser(View view,
org.openmali.vecmath2.Point3f point,
org.openmali.vecmath2.Vector3f direction,
float speed,
PointFocusser.FinishListener finishLsitener)
Creates a new instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PointFocusser
public PointFocusser(View view,
org.openmali.vecmath2.Point3f point,
org.openmali.vecmath2.Vector3f direction,
float speed,
PointFocusser.FinishListener finishLsitener)
- Creates a new instance.
- Parameters:
view - the View to manipulatepoint - the target positiondirection - the target facing directionspeed - the speed (units per second)finishLsitener - the listener to be notified when the point has been reached
PointFocusser
public PointFocusser(View view,
org.openmali.vecmath2.Point3f point,
org.openmali.vecmath2.Vector3f direction,
float speed)
- Creates a new instance.
- Parameters:
view - the View to manipulatepoint - the target positiondirection - the target facing directionspeed - the speed (units per second)
setUpVector
public final void setUpVector(org.openmali.vecmath2.Vector3f up)
getUpVector
public final org.openmali.vecmath2.Vector3f getUpVector()
setPoint
public void setPoint(org.openmali.vecmath2.Point3f point)
getPoint
public org.openmali.vecmath2.Point3f getPoint()
setDirection
public void setDirection(org.openmali.vecmath2.Vector3f direction)
getDirection
public org.openmali.vecmath2.Vector3f getDirection()
update
public void update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
- Updates this Updatable object.
- Parameters:
gameTime - the gameTime in MillisecondsframeTime - the frameTime in Milliseconds (needed time for the last frame)timingMode - the TimingMode to use for frameTime.
setFinishListener
public void setFinishListener(PointFocusser.FinishListener finishListener)