org.xith3d.utility.camera
Class SmoothPlaceableVerticalFocuser
java.lang.Object
org.xith3d.utility.camera.BasicPlaceableVerticalFocuser
org.xith3d.utility.camera.SmoothPlaceableVerticalFocuser
- All Implemented Interfaces:
- Updatable
public class SmoothPlaceableVerticalFocuser
- extends BasicPlaceableVerticalFocuser
Same as BasicPlaceableVerticalFocuser, but smooth.
|
Method Summary |
void |
setOffset(org.openmali.vecmath2.Tuple3f offset)
Set a shifter for this focuser. |
void |
update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
Updates this Updatable object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SmoothPlaceableVerticalFocuser
public SmoothPlaceableVerticalFocuser(View view,
Placeable placeable,
float height,
float alpha,
Updater updater)
- Creates a new
SmoothPlaceableVerticalFocuser.
- Parameters:
view - the view on which to actplaceable - the placeable to focus onheight - the initial height of the Cameraalpha - the interpolation speed, between 0 and 1updater - an Updater on which to register
setOffset
public void setOffset(org.openmali.vecmath2.Tuple3f offset)
- 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:
offset - the sifter offset
update
public void update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
- 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.