org.xith3d.utility.camera
Class SmoothPlaceableVerticalFocuser

java.lang.Object
  extended by org.xith3d.utility.camera.BasicPlaceableVerticalFocuser
      extended by org.xith3d.utility.camera.SmoothPlaceableVerticalFocuser
All Implemented Interfaces:
Updatable

public class SmoothPlaceableVerticalFocuser
extends BasicPlaceableVerticalFocuser

Same as BasicPlaceableVerticalFocuser, but smooth.


Field Summary
 
Fields inherited from class org.xith3d.utility.camera.BasicPlaceableVerticalFocuser
move
 
Constructor Summary
SmoothPlaceableVerticalFocuser(View view, Placeable placeable, float height, float alpha, Updater updater)
          Creates a new SmoothPlaceableVerticalFocuser.
 
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 org.xith3d.utility.camera.BasicPlaceableVerticalFocuser
getFocusPoint, getHeight, lookAt, setHeight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmoothPlaceableVerticalFocuser

public SmoothPlaceableVerticalFocuser(View view,
                                      Placeable placeable,
                                      float height,
                                      float alpha,
                                      Updater updater)
Creates a new SmoothPlaceableVerticalFocuser.

Parameters:
view - the view on which to act
placeable - the placeable to focus on
height - the initial height of the Camera
alpha - the interpolation speed, between 0 and 1
updater - an Updater on which to register
Method Detail

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 Milliseconds
frameTime - the frameTime in Milliseconds (needed time for the last frame)
timingMode - the TimingMode to use for frameTime.