|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.utility.camera.BasicPlaceableVerticalFocuser
public class BasicPlaceableVerticalFocuser
A Camera which follows a Placeable object, so that it is always at the center of the screen. The
height of the camera is adjustable, up vector is always +Y.
| Field Summary | |
|---|---|
protected org.openmali.vecmath2.Vector3f |
move
|
| Constructor Summary | |
|---|---|
BasicPlaceableVerticalFocuser(View view,
Placeable placeable,
float height,
Updater updater)
Creates a new BasicPlaceableVerticalFocuser. |
|
| Method Summary | |
|---|---|
protected org.openmali.vecmath2.Tuple3f |
getFocusPoint()
Returns the focus point. |
float |
getHeight()
Returns the height. |
protected void |
lookAt(org.openmali.vecmath2.Tuple3f pos)
Makes the camera look at the given position. |
void |
setHeight(float height)
Sets the new height. |
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 |
| Field Detail |
|---|
protected org.openmali.vecmath2.Vector3f move
| Constructor Detail |
|---|
public BasicPlaceableVerticalFocuser(View view,
Placeable placeable,
float height,
Updater updater)
BasicPlaceableVerticalFocuser.
view - the view on which to actplaceable - the placeable to focus onheight - the initial height of the Cameraupdater - an Updater on which to register| Method Detail |
|---|
public void setHeight(float height)
height - the new height to setpublic final float getHeight()
protected org.openmali.vecmath2.Tuple3f getFocusPoint()
protected void lookAt(org.openmali.vecmath2.Tuple3f pos)
pos - the position to look at.
public void update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
update in interface UpdatablegameTime - the gameTime in MillisecondsframeTime - the frameTime in Milliseconds (needed time for the last frame)timingMode - the TimingMode to use for frameTime.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||