Shapes 3D
3.0
|
Public Member Functions | |
abstract T | getThis () |
void | update (float deltaTime) |
T | apply (PGraphics pg) |
T | perspective (Perspective p) |
Perspective | perspective () |
PVector | pos () |
T | pos (PVector pos) |
PVector | up () |
T | up (PVector up) |
PVector | lookat () |
T | lookat (PVector lookat) |
PVector | heading () |
T | heading (PVector heading) |
PVector | velocity () |
T | velocity (PVector velocity) |
float | speed () |
T | speed (float speed) |
Protected Attributes | |
Perspective | perspective = null |
PVector | pos = new PVector() |
PVector | up = new PVector(0,1,0) |
PVector | lookat = new PVector(0,0,1) |
PVector | target = new PVector(0,0,1) |
PVector | velocity = new PVector() |
Base class for all cameras.
<T> | Camera or class that extends Camera |
T shapes3d.utils.Camera< T extends Camera< T > >.apply | ( | PGraphics | pg | ) |
Apply any perspective used by this camera to the specified graphics context.
pg | the graphics to apply perspective to |
T shapes3d.utils.Camera< T extends Camera< T > >.perspective | ( | Perspective | p | ) |
Set the perspective to be used by this camera.
p | the perspective for this camera |
void shapes3d.utils.Camera< T extends Camera< T > >.update | ( | float | deltaTime | ) |
Move the camera based on its velocity.
deltaTime | the elapsed time (s) |