mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
17 lines
319 B
C++
17 lines
319 B
C++
#ifndef PHYSICS_HITBOX_HPP_
|
|
#define PHYSICS_HITBOX_HPP_
|
|
|
|
#include <glm/glm.hpp>
|
|
|
|
class Hitbox {
|
|
public:
|
|
glm::vec3 position;
|
|
glm::vec3 halfsize;
|
|
glm::vec3 velocity;
|
|
float linear_damping;
|
|
bool grounded = false;
|
|
|
|
Hitbox(glm::vec3 position, glm::vec3 halfsize);
|
|
};
|
|
|
|
#endif /* PHYSICS_HITBOX_HPP_ */
|