|
CGVIS Utils
|
Minimal FPS-style camera with yaw/pitch look and WASD-style motion. More...
Go to the source code of this file.
Classes | |
| class | Camera |
Macros | |
| #define | LNC_PI 3.14159265358979323846 |
| #define | LNC_RADIANS(deg) |
Minimal FPS-style camera with yaw/pitch look and WASD-style motion.
Maintains position and an orthonormal basis (direction/right/up) derived from Euler yaw/pitch angles. The camera supports continuous motion toggled via boolean flags (front/back/left/right) and optional mouse-look. The view matrix is produced with a standard look-at helper.
Usage:
| #define LNC_PI 3.14159265358979323846 |