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