|
||||||||||
| 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(OperationScheduler opSched,
View view,
org.jagatoo.datatypes.Placeable placeable,
float height)
|
|
| Method Summary | |
|---|---|
protected org.openmali.vecmath2.Tuple3f |
getFocusPoint()
|
float |
getHeight()
|
boolean |
isAlive()
if false, the object will be removed from the scheduler next loop iteration |
boolean |
isPersistent()
If this operation is persistent, it remains scheduled after beeing executed once. |
protected void |
lookAt(org.openmali.vecmath2.Tuple3f pos)
|
void |
setAlive(boolean alive)
Sets this Object alive or dead |
void |
setHeight(float 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(OperationScheduler opSched,
View view,
org.jagatoo.datatypes.Placeable placeable,
float height)
| Method Detail |
|---|
public void update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
Updatable
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.protected void lookAt(org.openmali.vecmath2.Tuple3f pos)
protected org.openmali.vecmath2.Tuple3f getFocusPoint()
public boolean isAlive()
ScheduledOperation
isAlive in interface ScheduledOperationpublic boolean isPersistent()
ScheduledOperation
isPersistent in interface ScheduledOperationpublic void setAlive(boolean alive)
ScheduledOperation
setAlive in interface ScheduledOperationalive - if false, the object will be removed from the scheduler next loop iterationpublic float getHeight()
public void setHeight(float height)
height - the height to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||