|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
EntityController
defines an interface for interacting with
an entity. An entity can be a game object such as a character running
around the world or a Entity where the Entity is a means for defining the
view port of the display.
Method Summary | |
Vector |
getEntityPosition()
getEntityPosition returns the current location in
three dimensional space of the Entity. |
void |
render()
render sets the model view matrix to that defined by the
Entity's position, view and up vectors. |
void |
setEntityPitch(float angle)
setEntityPitch sets the pitch angle of the entity. |
void |
setEntityPosition(Vector position)
setEntityPosition sets the position of the Entity to the
vector passed. |
void |
setEntityRoll(float angle)
setEntityRoll sets the roll angle of the entity. |
void |
setEntityYaw(float angle)
setEntityYaw sets the yaw angle of the entity. |
Method Detail |
public Vector getEntityPosition()
getEntityPosition
returns the current location in
three dimensional space of the Entity.
public void setEntityPosition(Vector position)
setEntityPosition
sets the position of the Entity to the
vector passed.
position
- the new position of the Entity.public void setEntityYaw(float angle)
setEntityYaw
sets the yaw angle of the entity. Where yaw is
defined as rotation about the local Y axis.
angle
- the angle of yaw.public void setEntityRoll(float angle)
setEntityRoll
sets the roll angle of the entity. Where roll
is defined as rotation about the local Z axis.
angle
- the angle of roll.public void setEntityPitch(float angle)
setEntityPitch
sets the pitch angle of the entity. Where
pitch is defined as rotation about the local x axis.
angle
- the angle of pitch.public void render()
render
sets the model view matrix to that defined by the
Entity's position, view and up vectors.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |