SP and TP cameras
This commit is contained in:
@@ -20,6 +20,9 @@ Player::Player(glm::vec3 position, float speed) :
|
||||
speed(speed),
|
||||
choosenBlock(1) {
|
||||
camera = new Camera(position, glm::radians(90.0f));
|
||||
currentViewCamera = camera;
|
||||
SPCamera = new Camera(position, glm::radians(90.0f));
|
||||
TPCamera = new Camera(position, glm::radians(90.0f));
|
||||
hitbox = new Hitbox(position, vec3(0.3f,0.9f,0.3f));
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ class Level;
|
||||
|
||||
struct PlayerInput {
|
||||
bool zoom;
|
||||
bool cameraMode;
|
||||
bool moveForward;
|
||||
bool moveBack;
|
||||
bool moveRight;
|
||||
@@ -29,7 +30,7 @@ struct PlayerInput {
|
||||
class Player {
|
||||
float speed;
|
||||
public:
|
||||
Camera* camera;
|
||||
Camera* camera, *SPCamera, *TPCamera, *currentViewCamera;
|
||||
Hitbox* hitbox;
|
||||
bool flight = false;
|
||||
bool noclip = false;
|
||||
|
||||
Reference in New Issue
Block a user