Camera instance and controls it via w,a,s,d and mouse panning.
| Modifier and Type | Field and Description |
|---|---|
| public boolean | |
| public int | |
| protected final Camera | |
| protected float | |
| public int | |
| public int | |
| protected final IntIntMap | |
| public int | |
| public int | |
| protected final Vector3 | |
| public int | |
| protected float |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | keyDown(int keycode)
Overrides com. Implements com. Called when a key was pressed |
| public boolean | keyUp(int keycode)
Overrides com. Implements com. Called when a key was released |
| public void | |
| public void | setVelocity(float
the velocity in units per second velocity)Sets the velocity in units per second for moving forward, backward and strafing left/right. |
| public boolean | touchDragged(int screenX, int screenY, int pointer)
Overrides com. Implements com. Called when a finger or the mouse was dragged. |
| public void | |
| public void |
| autoUpdate | back to summary |
|---|---|
| public boolean autoUpdate | |
| backwardKey | back to summary |
|---|---|
| public int backwardKey | |
| camera | back to summary |
|---|---|
| protected final Camera camera | |
| degreesPerPixel | back to summary |
|---|---|
| protected float degreesPerPixel | |
| downKey | back to summary |
|---|---|
| public int downKey | |
| forwardKey | back to summary |
|---|---|
| public int forwardKey | |
| keys | back to summary |
|---|---|
| protected final IntIntMap keys | |
| strafeLeftKey | back to summary |
|---|---|
| public int strafeLeftKey | |
| strafeRightKey | back to summary |
|---|---|
| public int strafeRightKey | |
| tmp | back to summary |
|---|---|
| protected final Vector3 tmp | |
| upKey | back to summary |
|---|---|
| public int upKey | |
| velocity | back to summary |
|---|---|
| protected float velocity | |
| FirstPersonCameraController | back to summary |
|---|---|
| public FirstPersonCameraController(Camera camera) | |
| keyDown | back to summary |
|---|---|
| public boolean keyDown(int keycode) Overrides com. Implements com. Doc from com. Called when a key was pressed
| |
| keyUp | back to summary |
|---|---|
| public boolean keyUp(int keycode) Overrides com. Implements com. Doc from com. Called when a key was released
| |
| setDegreesPerPixel | back to summary |
|---|---|
| public void setDegreesPerPixel(float degreesPerPixel) Sets how many degrees to rotate per pixel the mouse moved. | |
| setVelocity | back to summary |
|---|---|
| public void setVelocity(float velocity) Sets the velocity in units per second for moving forward, backward and strafing left/right.
| |
| touchDragged | back to summary |
|---|---|
| public boolean touchDragged(int screenX, int screenY, int pointer) Overrides com. Implements com. Doc from com. Called when a finger or the mouse was dragged.
| |
| update | back to summary |
|---|---|
| public void update() | |
| update | back to summary |
|---|---|
| public void update(float deltaTime) | |