voxelcore/src/physics/Hitbox.h
2023-11-30 04:30:40 +03:00

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