Implement a little junk camera on its own that we can use later for movement and views.
This commit is contained in:
parent
976822ceb6
commit
48ac6603a8
5 changed files with 64 additions and 54 deletions
20
camera.hpp
Normal file
20
camera.hpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#pragma once
|
||||
#include "raycaster.hpp"
|
||||
|
||||
struct CameraLOL {
|
||||
double t = 0.0;
|
||||
double moveSpeed = 0.1;
|
||||
double rotSpeed = 0.1;
|
||||
double targetX = 0.0;
|
||||
double targetY = 0.0;
|
||||
int targetDir = 0;
|
||||
double targetDirX = 0.0;
|
||||
double targetDirY = 0.0;
|
||||
double targetPlaneX = 0.0;
|
||||
double targetPlaneY = 0.0;
|
||||
|
||||
void plan_run(Raycaster &rayview, int dir);
|
||||
bool play_run(Raycaster &rayview);
|
||||
void plan_rotate(Raycaster &rayview, int dir);
|
||||
bool play_rotate(Raycaster &rayview);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue