mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
12 lines
277 B
C++
12 lines
277 B
C++
#include "Hitbox.hpp"
|
|
|
|
Hitbox::Hitbox(
|
|
entityid_t entity, BodyType type, glm::vec3 position, glm::vec3 halfsize
|
|
)
|
|
: entity(entity),
|
|
type(type),
|
|
position(position),
|
|
halfsize(halfsize),
|
|
velocity(0.0f, 0.0f, 0.0f),
|
|
prevPosition(position) {
|
|
}
|