voxelcore/src/objects/Player.h
2022-10-28 22:44:32 +03:00

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_ */