org.xith3d.utility.camera
Class SmoothPlaceableVerticalFocuser
java.lang.Object
org.xith3d.utility.camera.BasicPlaceableVerticalFocuser
org.xith3d.utility.camera.SmoothPlaceableVerticalFocuser
- All Implemented Interfaces:
- ScheduledOperation, Updatable
public class SmoothPlaceableVerticalFocuser
- extends BasicPlaceableVerticalFocuser
Same as BasicPlaceableVerticalFocuser, but smooth
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SmoothPlaceableVerticalFocuser
public SmoothPlaceableVerticalFocuser(OperationScheduler opSched,
View view,
org.jagatoo.datatypes.Placeable placeable,
float height,
float alpha)
- Create a new SmoothPlaceableVerticalFocuser
- Parameters:
opSched - An op-scheduler on which to registerview - The view on which to actplaceable - The placeable to focusheight - Heightalpha - Interpolation Speed, between 0 and 1
setTupleShifter
public void setTupleShifter(TupleShifter shifter)
- Set a shifter for this focuser.
If non-null, the shifter will modify the position
of the camera once it's interpolated, so that you can
have variety of views..
- Parameters:
shifter -
update
public void update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
- Description copied from interface:
Updatable
- Updates this Updatable object.
- Specified by:
update in interface Updatable- Overrides:
update in class BasicPlaceableVerticalFocuser
- Parameters:
gameTime - the gameTime in MillisecondsframeTime - the frameTime in Milliseconds (needed time for the last frame)timingMode - the TimingMode to use for frameTime.