mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
27 lines
515 B
C++
27 lines
515 B
C++
#ifndef SRC_OBJECTS_PLAYER_H_
|
|
#define SRC_OBJECTS_PLAYER_H_
|
|
|
|
#include <glm/glm.hpp>
|
|
|
|
class Camera;
|
|
class Hitbox;
|
|
class PhysicsSolver;
|
|
class Chunks;
|
|
|
|
class Player {
|
|
public:
|
|
float speed;
|
|
Camera* camera;
|
|
Hitbox* hitbox;
|
|
bool flight = false;
|
|
bool noclip = false;
|
|
int choosenBlock;
|
|
float camX, camY;
|
|
float cameraShaking = 0.0f;
|
|
float cameraShakingTimer = 0.0f;
|
|
glm::vec3 interpVel {0.0f, 0.0f, 0.0f};
|
|
Player(glm::vec3 position, float speed, Camera* camera);
|
|
~Player();
|
|
};
|
|
|
|
#endif /* SRC_OBJECTS_PLAYER_H_ */
|